Astro: Planetary Time Projection [invincible3]Astro: Planetary Time Projection
Astro: Planetary Time Projection is a time-analysis indicator inspired by the market philosophy of W.D. Gann, who believed that markets are governed not only by price but also by recurring cycles of time.
Unlike traditional technical indicators that attempt to forecast future prices, this indicator is designed to project **potential market timing windows**. It starts from an important market high or low (the Anchor) and projects future dates based on the angular movement of selected celestial bodies.
The underlying idea is simple:
A significant market high or low establishes the starting point. As planets advance through specific angular distances from that anchor, the market may enter a period where a reversal, acceleration, breakout, or change in behavior becomes more likely.
The indicator does not predict price direction. Instead, it identifies when market participants may want to pay closer attention to price action.
-----------------------------------------------------------------------------------------------
Core Concept
The workflow follows four simple steps.
Step 1 — Identify an Important Anchor
Select a meaningful market event to use as the Anchor Date.
Typical anchors include:
• Major swing highs
• Major swing lows
• Bull market bottoms
• Bear market tops
• Long-term support or resistance reversals
• Breakout or breakdown dates
• Major economic or geopolitical events
The quality of the anchor often determines the usefulness of the projected timing windows.
-----------------------------------------------------------------------------------------------
Step 2 — Select One or More Planets
The indicator allows multiple planets to be enabled simultaneously.
Supported bodies include:
• Sun
• Moon
• Mercury
• Venus
• Mars
• Jupiter
• Saturn
• Uranus
• Neptune
• Pluto
• North Lunar Node
Each body moves at its own average angular speed, producing unique timing cycles.
-----------------------------------------------------------------------------------------------
Step 3 — Select Planetary Angles
Choose one or more angular projections.
Available presets include:
15°
30°
45°
50°
60°
72°
75°
87°
90°
115°
120°
144°
180°
216°
240°
270°
315°
360°
Custom angles may also be entered to support individual trading methodologies.
-----------------------------------------------------------------------------------------------
Step 4 — Project Future Time Windows
The indicator calculates the amount of time required for each selected planet to travel the chosen angular distance from the Anchor Date.
Those calculated dates are displayed as vertical timing lines on the chart.
These dates represent **potential periods of increased market significance**, where traders may observe:
• Trend reversals
• Trend continuation
• Breakouts
• Breakdown attempts
• Volatility expansion
• Momentum shifts
• Cycle completions
-----------------------------------------------------------------------------------------------
The Gann Perspective
W.D. Gann believed that markets exhibit recurring mathematical and natural cycles.
One of his enduring principles was:
"When Time is fulfilled, Price becomes vulnerable."
Rather than attempting to predict exact prices, Gann often focused on identifying moments when the market had completed an important time cycle.
This indicator adopts that philosophy by using planetary angular movement as a timing mechanism.
It does not assume that planets directly influence financial markets. Instead, planetary cycles are used as a structured and repeatable way to measure the passage of time from significant market events.
-----------------------------------------------------------------------------------------------
Time Projection Instead of Price Prediction
This indicator answers a different question than most technical tools.
Traditional indicators ask:
"Where might price go?"
Astro: Planetary Time Projection asks:
"When should I pay closer attention?"
The projected dates are intended to highlight periods where market behavior may become more dynamic. These dates should always be interpreted alongside price action and broader market context.
-----------------------------------------------------------------------------------------------
Time Confluence
One of the most valuable features of the indicator is the ability to enable multiple planets simultaneously.
When projections from different planetary cycles occur close together, a time confluence is created.
Many Gann practitioners consider these clustered periods to be more significant than isolated timing projections, as multiple independent cycles converge within a relatively short time window.
-----------------------------------------------------------------------------------------------
Repeat Cycle Projection
Markets often display repeating cyclical behavior over longer periods.
The Repeat Cycle option extends each selected planetary projection by additional 360° revolutions.
For example:
90°
450°
810°
1170°
-----------------------------------------------------------------------------------------------
This feature allows users to study both short-term and long-term timing relationships.
-----------------------------------------------------------------------------------------------
Forward and Backward Analysis
The indicator supports both:
Forward Projection
Projects future timing windows beyond the selected anchor.
Backward Projection
Projects historical timing relationships prior to the anchor, making it useful for research and historical cycle analysis.
-----------------------------------------------------------------------------------------------
Suggested Workflow
A common workflow is:
1. Identify a significant market high or low.
2. Set the Anchor Date.
3. Enable one or more planets.
4. Select the desired angular projections.
5. Observe where multiple planetary timing lines cluster.
6. Monitor those dates for technical confirmation using market structure, support and resistance, trend analysis, volume, or momentum indicators.
The indicator is intended to complement—not replace—traditional technical analysis.
-----------------------------------------------------------------------------------------------
Features
• Multiple planetary selection
• Planet-specific color coding
• User-defined Anchor Date
• Multiple angle projections
• Custom angular inputs
• Forward and backward projections
• Repeat 360° cycle projections
• Vertical timing windows
• Optional labels
• Lightweight PulseWire implementation
-----------------------------------------------------------------------------------------------
Current Calculation Model
The current version estimates planetary movement using average angular speeds to generate practical timing projections within Pine Script.
It is designed as a lightweight and educational implementation suitable for market timing studies.
It is not intended to reproduce high-precision astronomical ephemeris calculations or professional astrology software.
-----------------------------------------------------------------------------------------------
Disclaimer
Astro: Planetary Time Projection is an educational market timing tool inspired by Gann's time-cycle methodology.
The projected dates identify potential timing windows, not guaranteed market reversals or price targets.
No indicator can predict future market movements with certainty. Users should combine this tool with sound technical analysis, disciplined risk management, and independent judgment before making trading decisions.
Indicator

Astro: Time-Degree Trend Lines [invincible3]Astro-Gann Time-Degree Trend Lines – Invincible3
Astro-Gann Time-Degree Trend Lines is a range-based financial astrology and Gann timing tool designed to project planetary motion into price space.
Instead of plotting ordinary planetary positions, this indicator converts planetary movement into price-degree trend lines using a selected anchor price, anchor time, end time, user-defined planetary starting degrees, a motion harmonic multiplier, and a custom price-per-degree scale.
The concept is based on the Gann principle that time, price, and degrees can be harmonically related. Each planet’s movement over the selected range is converted into price movement, allowing traders to study planetary speed, time cycles, price vibration, and harmonic market geometry directly on the chart.
The indicator also includes a Gann-style aspect table that compares planet-to-planet angular relationships at the end of the selected range using each planet’s manually entered starting degree. This makes the aspect logic more meaningful because planets no longer begin from a common zero point. Each planet can start from its own real zodiac degree, ephemeris-based value, or symbolic Gann degree.
This tool is especially useful for traders who apply W.D. Gann methods, planetary time cycles, price-time squaring, astro-harmonics, Square of 9 logic, 360° degree geometry, and financial astrology to identify possible zones of trend continuation, support, resistance, vibration, or reversal timing.
What This Indicator Does
The indicator starts from a selected anchor price and anchor time.
Each planet also has a user-defined starting degree at the anchor. From that point, the script calculates how many degrees each planet moves during the selected date range, adds that motion to the planet’s starting degree, and then converts the resulting degree value into a projected price level.
The projection model is:
Planetary Motion = Days × Average Daily Motion × Motion Harmonic Multiplier
Line Degree = Starting Degree + Planetary Motion
Projected Price = Anchor Price ± (Line Degree × Points Per Degree)
This means the starting degree directly affects the trend-line position.
For example, if the Sun starts at 4°, moves 30°, and the selected scale is 10 points per degree, then:
Line Degree = 4° + 30° = 34°
Projected Price = Anchor Price ± 340 points
So the line does not only represent planetary movement from zero. It represents the full start-degree-adjusted Gann line degree.
Core Concept
This is not a standard astronomical aspect indicator. It is a Gann-style time-degree projection tool.
The purpose is to study:
How many degrees each planet moves during a selected market range.
How planetary motion can be translated into price.
How each planet’s starting degree changes the projected line position.
Which planets produce stronger or weaker price-time slopes.
Where planetary degree projections align with price structure.
Which planet pairs form Gann/astro harmonic relationships at the end of the range.
This makes the indicator useful for analyzing market vibration, planetary speed relationships, price-time geometry, harmonic projection, and range-based astro-Gann timing.
Key Features
Range-Based Astro-Gann Projection
Select a custom time range using:
Anchor Time
End Time
Anchor Price
The indicator calculates planetary movement across this exact range and projects it onto the price chart.
This allows traders to study planetary motion from an important market event such as:
Major swing high
Major swing low
Breakout point
Crash low
All-time high
Cycle start
First trading date
Gann anniversary date
Important planetary event
Major economic or market cycle date
The selected range becomes the measurement window for planetary movement and Gann degree projection.
User-Defined Starting Degrees
Each planet has a manual starting degree input.
This allows traders to enter the actual zodiac degree or symbolic Gann degree of each planet at the anchor date.
The starting degree affects:
The plotted planetary trend-line position
The projected price level
The end label
The final line degree
The aspect-table end longitude
This correction is important because each planet no longer starts from 0°. Each body can begin from its own real, ephemeris-based, or symbolic starting degree.
For price projection, the indicator uses:
Line Degree = Starting Degree + Planetary Motion
For aspect calculations, the indicator uses:
End Longitude = Starting Degree + Signed Planetary Motion
Planetary Time-Degree Trend Lines
The indicator plots planetary motion lines for:
☉ Sun
☾ Moon
☿ Mercury
♀ Venus
♂ Mars
♃ Jupiter
♄ Saturn
♅ Uranus
♆ Neptune
♇ Pluto
☊ Lunar Node
Each planet has:
Its own average daily motion
Its own starting degree
Its own projected line degree
Its own color setting
Its own visibility toggle
The final trend-line position is based on the planet’s starting degree plus its movement over the selected range.
Uptrend and Downtrend Projection
The indicator can plot:
Upward planetary projection lines
Downward planetary projection lines
Upward lines project planetary degree movement above the anchor price.
Downward lines project planetary degree movement below the anchor price.
This allows traders to study both bullish and bearish price-time pathways from the same anchor.
For example:
Up projection = Anchor Price + Line Degree × Points Per Degree
Down projection = Anchor Price - Line Degree × Points Per Degree
This gives a balanced way to study both expansion and contraction from a selected market point.
Points Per Degree Scaling
The user can define how many price points represent one planetary degree.
Examples:
1 point per degree
10 points per degree
100 points per degree
Custom market-specific scaling
This is useful because every market has a different vibration.
Gold, Bitcoin, forex pairs, stocks, commodities, and indices may require different degree-to-price scaling.
The purpose is to find a scale where planetary degree projections align meaningfully with market structure, swing points, or harmonic price zones.
Motion Harmonic Multiplier
The motion harmonic multiplier can be used to increase or decrease the speed of planetary projection.
Examples:
1x = normal planetary motion
2x = double-speed harmonic
0.5x = half-speed harmonic
This can be useful for traders who study:
Harmonic repetition
Accelerated cycles
Compressed planetary timing
Higher-frequency market vibration
Fractional planetary movement
The motion harmonic multiplier changes the planetary movement component of the line.
It affects the slope and speed of the planetary projection. It should be understood as a speed or cycle multiplier, not as a 360° price octave shift.
Gann Aspect Table
The indicator includes a compact aspect table that compares planet-to-planet angular relationships at the end of the selected range.
The table uses each planet’s starting degree and signed planetary motion:
End Longitude = Starting Degree + Signed Planetary Motion
Then it calculates the angular separation between planet pairs and finds the nearest Gann/astro aspect.
Supported aspect angles include:
0° Conjunction
30° Semi-sextile
45° Semi-square
60° Sextile
72° Quintile
90° Square
120° Trine
135° Sesquiquadrate
144° Biquintile / Gann harmonic
150° Quincunx
180° Opposition
The table displays:
Planet pair
Nearest aspect
Angular delta at range end
Orb from exact aspect
This helps identify which planet pairs are in close harmonic relationship at the end of the selected range.
Aspect Interpretation for Gann Traders
In financial astrology and Gann analysis, aspects are not used only as traditional astrology signals. They are also treated as geometric divisions of the 360° circle.
Important divisions include:
45° and 90° for square pressure and market action
60° and 120° for smoother harmonic flow
72° and 144° for fifth-harmonic and pentagonal geometry
180° for opposition, polarity, and possible culmination
30° and 150° for adjustment zones
When a planet pair forms a tight orb near one of these angles, it may indicate a time window where market rhythm, volatility, or direction can shift.
The table is not meant to be used as a standalone signal. It is designed to provide astro-Gann confluence with price structure, swing points, trendlines, Fibonacci levels, cycle dates, and market context.
How to Use
1. Choose an Important Market Anchor Point
Select a meaningful market point such as:
Major swing high
Major swing low
Breakout level
Crash low
All-time high
All-time low
First trading date
Cycle start
Gann anniversary date
This anchor becomes the origin point for the projection.
2. Set the Anchor Price
Enter the price level from which the planetary degree lines will begin.
This is usually the price of the selected swing high, swing low, breakout, or cycle point.
3. Set the Anchor Time and End Time
Choose the start and end dates of the range.
The indicator calculates planetary movement across this selected time window.
The range defines the time component of the Astro-Gann projection.
4. Enter Starting Degrees for Each Planet
Enter the starting degree for each planet at the anchor date.
These can be:
Actual zodiac degrees from an ephemeris
Geocentric planetary degrees
Heliocentric planetary degrees
Symbolic Gann degrees
Custom cycle degrees chosen by the trader
The starting degree affects both the trend-line position and the aspect-table calculation.
5. Adjust Points Per Degree
Increase or decrease the price-per-degree value until the projected planetary lines match the market’s vibration.
Different markets may require different scales.
For example:
Gold may respond better to one scale.
Bitcoin may require a larger scale.
Forex may require a smaller scale.
Stocks and indices may need symbol-specific calibration.
6. Adjust the Motion Harmonic Multiplier
Use the motion harmonic multiplier to test faster or slower planetary projection rhythms.
For example:
1x = normal planetary speed
2x = double-speed projection
0.5x = half-speed projection
This is useful when studying compressed cycles, expanded cycles, or harmonic repetitions of planetary motion.
7. Enable the Planets You Want to Study
Enable or disable planets depending on your trading timeframe.
General use:
Moon, Mercury, Venus = faster short-term timing
Sun and Mars = intermediate timing
Jupiter and Saturn = larger cycle structure
Uranus, Neptune, Pluto = macro or long-term harmonic background
Node = long-cycle timing reference in financial astrology
8. Use the Aspect Table
Look for tight orbs between planet pairs near important Gann aspects such as:
45°
60°
72°
90°
120°
135°
144°
150°
180°
The tighter the orb, the closer the pair is to an exact harmonic relationship at the end of the selected range.
Use this as timing confluence, not as a mechanical buy/sell signal.
Practical Trading Applications
This indicator can be used to study:
Price-time squaring
Planetary degree projection
Market vibration
Time-cycle completion
Harmonic resistance and support zones
Planetary speed-based trend slopes
Start-degree-adjusted planetary projection
Possible reversal windows
Range-based astro-Gann confluence
Planet-to-planet harmonic relationships
It is best used together with normal market structure tools such as:
Swing highs and lows
Trendlines
Fibonacci levels
Support and resistance
Volume
Momentum indicators
Cycle dates
Seasonality
Volatility zones
The strongest use case is when planetary lines, motion harmonics, aspect-table harmonics, and technical market structure all point to the same zone.
Important Notes
This indicator uses average daily planetary motion, not a full astronomical ephemeris engine.
The starting degrees are entered manually by the user. For more accurate astrology-based analysis, users should obtain planetary degrees from an ephemeris and enter them into the starting degree fields.
The starting degrees affect both:
Visual projection lines
Aspect-table calculations
This makes the tool more consistent with range-based Astro-Gann analysis.
The Lunar Node is commonly treated as retrograde in zodiac motion. For price-line projection, absolute motion may be used for clean visual direction, while aspect logic respects signed motion.
Because this is a Gann-style projection tool, the purpose is not to predict with certainty. The purpose is to map possible price-time harmonics and observe where market structure reacts around those projected levels.
Known Limitations
Planetary positions are based on average motion, not high-precision ephemeris calculations.
Manual starting degrees are required for meaningful projection and aspect-table results.
The indicator does not automatically fetch real-time planetary longitude.
The motion harmonic multiplier changes projection speed, not a 360° price octave.
Results should be treated as analytical confluence, not standalone trade signals.
Best Use Case
This tool is best suited for traders who already use or are studying:
W.D. Gann methods
Financial astrology
Planetary price-time projection
Square of 9 logic
360° degree geometry
Astro-cycle timing
Harmonic market geometry
Planetary speed relationships
Price-time squaring
It is designed for traders who want to visually connect planetary motion, starting degrees, time range, and price movement directly on the chart.
Summary
Astro-Gann Time-Degree Trend Lines – Invincible3 converts planetary motion into price-degree projections using a selected market range.
The corrected logic combines:
Starting Degree
Planetary Motion
Motion Harmonic Multiplier
Price-per-degree scaling
This creates a practical Astro-Gann projection model where each planet has its own degree origin, its own movement, and its own projected price path.
The result is a charting tool for studying planetary price-time geometry, market vibration, harmonic resistance/support, and possible reversal timing.
Disclaimer
This indicator is for educational and analytical purposes only. It does not provide financial advice or guaranteed market predictions. Always combine astro-Gann analysis with risk management, market structure, and independent trading judgment. Indicator

blueprint_ephemeris_lib🔭 Library blueprint_ephemeris_lib
Consolidated planetary ephemeris library with improved accuracy. Supersedes previous individual planet libraries (lib_vsop_core, lib_vsop_mercury, lib_vsop_venus, etc.). One import gives you geocentric/heliocentric positions for all 10 solar system bodies.
█ ACCURACY — VALIDATED AGAINST JPL DE440
Every planetary body was validated against NASA's DE440 ephemeris (via Skyfield). Using only 1.6% of the full VSOP87D theory (511 of 31,577 terms), this library achieves sub-arcminute accuracy for all planets:
Sun 0.004° (14 arcseconds)
Mercury 0.005° (18")
Venus 0.006° (22")
Mars 0.010° (36")
Jupiter 0.007° (25")
Saturn 0.009° (32")
Uranus 0.013° (47")
Neptune 0.017° (61")
Moon 0.062° (3.7')
Pluto 0.059° (3.5')
All bodies under 0.1° RMS — more than sufficient for aspect calculations, ingress timing, and planetary line work. The Sun is accurate to 14 arcseconds using a truncated series that fits entirely inside Pine Script's token limits.
█ WHAT'S NEW (V2)
The original ephemeris required 11 chained library imports. A full validation audit uncovered critical coefficient errors and motivated this rewrite:
• L1 Precession Fix — All 8 VSOP87 planets had incorrect longitude rate coefficients (VSOP87B values instead of VSOP87D). Each was missing +0.24382 rad/millennium of general precession. This single correction reduced error from ~0.75° to < 0.1° across the board.
• 28% Smaller — 4,300 lines across 11 files → ~3,100 lines in 1 file.
• Single Import — No dependency chain. Faster execution.
• Moon Improvements — Functions accept raw `time` directly. Node functions renamed with explicit north/south designation.
█ THEORIES
VSOP87D (Bretagnon & Francou, 1988) — Mercury through Neptune
511 truncated terms out of 31,577 total (1.6%). Heliocentric spherical
coordinates in the ecliptic of date.
ELP2000-82 (Chapront-Touzé & Chapront, 1983) — Moon
91 terms (48 longitude + 43 latitude) from Meeus Chapter 47.
Meeus Series (Meeus, 1998) — Pluto
Analytical series from "Astronomical Algorithms" Ch. 37.
Valid ±1 century from J2000.
█ HOW TO USE
Import the library:
import BlueprintResearch/blueprint_ephemeris_lib/1 as eph
Basic — plot a planet's geocentric longitude and declination:
float jupiter_lon = eph.get_longitude(eph.Planet.Jupiter, time, true)
float jupiter_decl = eph.get_declination(eph.Planet.Jupiter, time)
plot(jupiter_lon, "Jupiter Geo Lon", color.yellow)
plot(jupiter_decl, "Jupiter Decl", color.red)
Retrograde detection:
bool mercury_retro = eph.is_retrograde(eph.Planet.Mercury, time)
bgcolor(mercury_retro ? color.new(color.red, 90) : na)
Moon nodes and declination:
float north_node = eph.get_mean_north_node_lon(time)
float south_node = eph.get_mean_south_node_lon(time)
float moon_decl = eph.get_declination(time)
plot(north_node, "North Node", color.green)
plot(south_node, "South Node", color.purple)
plot(moon_decl, "Moon Declination", color.orange)
Dynamic planet selection from input:
string planet_str = input.string("Sun", "Planet", options= )
eph.Planet p = eph.string_to_planet(planet_str)
float geo = eph.get_longitude(p, time, true)
float helio = eph.get_longitude(p, time, false)
float speed = eph.get_speed(p, time)
plot(geo, "Geocentric", color.yellow)
plot(helio, "Heliocentric", color.blue)
plot(speed * 100, "Speed x100", color.white)
All functions accept PulseWire's `time` variable directly.
█ FUNCTIONS
Unified API (all planets):
`get_longitude(Planet, time, preferGeo)` — geo or heliocentric longitude
`get_declination(Planet, time)` — equatorial declination
`get_speed(Planet, time)` — longitude speed (°/day)
`is_retrograde(Planet, time)` — true when retrograde
`string_to_planet(string)` — name to enum
Averages :
`get_avg6_geo_lon` / `get_avg6_helio_lon` — Mercury–Saturn
`get_avg8_geo_lon` / `get_avg8_helio_lon` — Mercury–Neptune
Moon (direct access):
`get_geo_ecl_lon(time)` · `get_geo_ecl_lat(time)` · `get_declination(time)`
`get_mean_north_node_lon(time)` · `get_mean_south_node_lon(time)`
`get_true_north_node_lon(time)` · `get_true_south_node_lon(time)`
`get_north_node_declination(time)` · `get_south_node_declination(time)`
█ LIMITATIONS
• Truncated series — sub-degree accuracy, not sub-arcsecond. More than sufficient for ingress timing and aspect work.
• Validated against DE440 across 250 years (1850–2100). Over this full span, the worst-case VSOP87 planet (Uranus) is 0.017° RMS / 0.043° max error. Ingress dates manually verified back to the late 1800s with consistent accuracy.
• Pluto uses Meeus series, limited to ±1 century from J2000.
• Moon has no speed function.
█ ACKNOWLEDGMENTS
Coefficient validation was made possible by Greg Miller's VSOP87 multi-language project, which provides the complete VSOP87D coefficient tables in accessible formats. His work converting the original Fortran data files into CSV/JSON for multiple languages was essential for identifying the L1 precession errors in the original libraries. Miller released this work into the public domain.
github.com/gmiller123456/vsop87-multilang
References :
• Meeus, Jean. Astronomical Algorithms (2nd Ed., 1998)
• Bretagnon & Francou. VSOP87 Solutions (Astronomy & Astrophysics, 1988)
• Chapront-Touzé & Chapront. ELP2000-82 (1983)
█ OPEN SOURCE
MIT License — part of the Blueprint Research open-source toolkit.
Source code on GitHub
get_geo_ecl_lon(time_)
Returns geocentric ecliptic longitude of the Moon.
Parameters:
time_ (float)
Returns: (float) Longitude in degrees, range [0, 360).
get_geo_ecl_lat(time_)
Returns geocentric ecliptic latitude of the Moon.
Parameters:
time_ (float)
Returns: (float) Latitude in degrees.
get_obliquity_j(time_)
Returns mean obliquity of the ecliptic.
Parameters:
time_ (float)
Returns: (float) Obliquity in degrees.
get_declination(time_)
Returns geocentric equatorial declination of the Moon.
Parameters:
time_ (float)
Returns: (float) Declination in degrees, range where positive is north.
get_declination(p, t)
Returns planetary geocentric equatorial declination.
Parameters:
p (series Planet) : (Planet) Planet to query.
t (float) : (float) Unix timestamp in milliseconds (use built-in 'time' variable).
Returns: (float) Geocentric declination in degrees, range where positive is north.
@note Declination is always geocentric (no heliocentric equivalent in library).
get_mean_north_node_lon(time_)
Returns mean longitude of the Moon's North Node (ascending node).
Parameters:
time_ (float)
Returns: (float) Longitude in degrees, range [0, 360).
@note Mean node is a simple averaged calculation, reducing computational error. Used for declination calculations.
get_mean_south_node_lon(time_)
Returns mean longitude of the Moon's South Node (descending node).
Parameters:
time_ (float)
Returns: (float) Longitude in degrees, range [0, 360). Equals North Node + 180°.
get_true_north_node_lon(time_)
Returns true longitude of the Moon's North Node with perturbation corrections.
Parameters:
time_ (float)
Returns: (float) Longitude in degrees, range [0, 360).
@note True node includes periodic perturbations but formula is low precision. Consider using mean node for consistency.
get_true_south_node_lon(time_)
Returns true longitude of the Moon's South Node with perturbation corrections.
Parameters:
time_ (float)
Returns: (float) Longitude in degrees, range [0, 360). Equals True North Node + 180°.
get_north_node_declination(time_)
Returns declination of the Moon's North Node.
Parameters:
time_ (float)
Returns: (float) Declination in degrees, range (bounded by obliquity).
@note Uses mean node for calculation (more consistent than true node).
get_south_node_declination(time_)
Returns declination of the Moon's South Node.
Parameters:
time_ (float)
Returns: (float) Declination in degrees. Inverse of North Node declination.
normalizeLongitude(lon)
Normalizes any longitude value to the range [0, 360) degrees.
Parameters:
lon (float) : (float) Longitude in degrees (can be any value, including negative or >360).
Returns: (float) Normalized longitude in range [0, 360).
string_to_planet(planetStr)
Converts a planet string identifier to Planet enum value.
Parameters:
planetStr (string) : (string) Planet name (case-insensitive). Supports formats: "Sun", "☉︎ Sun", "sun", "SUN"
Returns: (Planet) Corresponding Planet enum. Returns Planet.Sun if string not recognized.
@note Supported planet strings: Sun, Moon, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto
get_longitude(p, t, preferGeo)
Returns planetary longitude with automatic coordinate system selection.
Parameters:
p (series Planet) : (Planet) Planet to query.
t (float) : (float) Unix timestamp in milliseconds (use built-in 'time' variable).
preferGeo (bool) : (bool) If true, return geocentric; if false, return heliocentric.
Returns: (float) Longitude in degrees, normalized to range [0, 360).
@note Sun and Moon always return geocentric regardless of preference (heliocentric not applicable).
get_speed(p, t)
Returns planetary geocentric longitude speed (rate of change).
Parameters:
p (series Planet) : (Planet) Planet to query.
t (float) : (float) Unix timestamp in milliseconds (use built-in 'time' variable).
Returns: (float) Geocentric longitude speed in degrees per day. Negative values indicate retrograde motion. Returns na for Moon.
@note Speed is always geocentric (no heliocentric equivalent in library). Moon speed calculation not implemented.
get_avg6_geo_lon(t)
get_avg6_geo_lon
@description Returns the arithmetic average of the geocentric longitudes for the six outer planets: Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average geocentric longitude of the six outer planets in degrees, range [0, 360).
get_avg6_helio_lon(t)
get_avg6_helio_lon
@description Returns the arithmetic average of the heliocentric longitudes for the six outer planets: Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average heliocentric longitude of the six outer planets in degrees, range [0, 360).
get_avg8_geo_lon(t)
get_avg8_geo_lon
@description Returns the arithmetic average of the geocentric longitudes for all eight classical planets: Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average geocentric longitude of all eight classical planets in degrees, range [0, 360).
get_avg8_helio_lon(t)
get_avg8_helio_lon
@description Returns the arithmetic average of the heliocentric longitudes for all eight classical planets: Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average heliocentric longitude of all eight classical planets in degrees, range [0, 360).
is_retrograde(p, t)
Returns true if the planet is currently in retrograde motion (geocentric speed < 0) == 0 = stationary.
Parameters:
p (series Planet) : The planet to check.
t (float) : Time in Unix timestamp (milliseconds).
Returns: true if the planet is in retrograde, false otherwise. Library

lib_ephemeris █ PLANETARY EPHEMERIS MASTER LIBRARY
Unified API for calculating planetary positions. Import this single library to access all 11 celestial bodies: Sun, Moon, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Theory: VSOP87 (planets), ELP2000-82 (Moon), Meeus (Pluto)
═══════════════════════════════════════════════════════════════
█ QUICK START
//@version=6
indicator("Planetary Ephemeris Demo")
import BlueprintResearch/lib_ephemeris/1 as eph
// Get all planets
sun = eph.string_to_planet("Sun")
moon = eph.string_to_planet("Moon")
mercury = eph.string_to_planet("Mercury")
venus = eph.string_to_planet("Venus")
mars = eph.string_to_planet("Mars")
jupiter = eph.string_to_planet("Jupiter")
saturn = eph.string_to_planet("Saturn")
uranus = eph.string_to_planet("Uranus")
neptune = eph.string_to_planet("Neptune")
pluto = eph.string_to_planet("Pluto")
// Get longitude for each planet (geocentric)
sun_lon = eph.get_longitude(sun, time, true)
moon_lon = eph.get_longitude(moon, time, true)
mercury_lon = eph.get_longitude(mercury, time, true)
venus_lon = eph.get_longitude(venus, time, true)
mars_lon = eph.get_longitude(mars, time, true)
jupiter_lon = eph.get_longitude(jupiter, time, true)
saturn_lon = eph.get_longitude(saturn, time, true)
uranus_lon = eph.get_longitude(uranus, time, true)
neptune_lon = eph.get_longitude(neptune, time, true)
pluto_lon = eph.get_longitude(pluto, time, true)
// Plot all planets
plot(sun_lon, "Sun", color.yellow)
plot(moon_lon, "Moon", color.silver)
plot(mercury_lon, "Mercury", color.orange)
plot(venus_lon, "Venus", color.green)
plot(mars_lon, "Mars", color.red)
plot(jupiter_lon, "Jupiter", color.purple)
plot(saturn_lon, "Saturn", color.olive)
plot(uranus_lon, "Uranus", color.aqua)
plot(neptune_lon, "Neptune", color.blue)
plot(pluto_lon, "Pluto", color.gray)
═══════════════════════════════════════════════════════════════
█ AVAILABLE FUNCTIONS
Core Data Access:
• string_to_planet(string) → Planet enum
• get_longitude(Planet, time, preferGeo) → degrees [0, 360)
• get_declination(Planet, time) → degrees
• get_speed(Planet, time) → degrees/day
• is_retrograde(Planet, time) → true/false
Planetary Averages:
• get_avg6_geo_lon(time) → 6 outer planets average
• get_avg6_helio_lon(time)
• get_avg8_geo_lon(time) → 8 classical planets average
• get_avg8_helio_lon(time)
Utility:
• normalizeLongitude(lon) → normalize to [0, 360)
═══════════════════════════════════════════════════════════════
█ SUPPORTED PLANET STRINGS
Works with symbols or plain names (case-insensitive):
• "☉︎ Sun" or "Sun"
• "☽︎ Moon" or "Moon"
• "☿ Mercury" or "Mercury"
• "♀ Venus" or "Venus"
• "🜨 Earth" or "Earth"
• "♂ Mars" or "Mars"
• "♃ Jupiter" or "Jupiter"
• "♄ Saturn" or "Saturn"
• "⛢ Uranus" or "Uranus"
• "♆ Neptune" or "Neptune"
• "♇ Pluto" or "Pluto"
═══════════════════════════════════════════════════════════════
█ COORDINATE SYSTEMS
Geocentric: Positions relative to Earth (default for Sun/Moon)
Heliocentric: Positions relative to the Sun
Use the preferGeo parameter in get_longitude():
• true = geocentric
• false = heliocentric
Sun and Moon always return geocentric (heliocentric not applicable).
═══════════════════════════════════════════════════════════════
█ FUTURE PROJECTIONS
Project planetary positions into the future using polylines:
import BlueprintResearch/lib_vsop_core/1 as core
// Get future timestamp (250 bars ahead)
future_time = core.get_future_time(time, 250)
// Calculate future position
future_lon = eph.get_longitude(mars, future_time, true)
Use with polyline.new() to draw projected paths on your chart. See the commented showcase code in this library's source for a complete 250-bar projection example.
═══════════════════════════════════════════════════════════════
█ OPEN SOURCE
This library is part of an open-source planetary ephemeris project.
Free to use with attribution. MIT License.
═══════════════════════════════════════════════════════════════
█ REFERENCES
• Meeus, Jean. "Astronomical Algorithms" (2nd Ed., 1998)
• Bretagnon & Francou. "VSOP87 Solutions" (1988)
• Chapront-Touzé & Chapront. "ELP2000-82" (1983)
═══════════════════════════════════════════════════════════════
© 2025 BlueprintResearch (Javonnii) • MIT License
@version=6
normalizeLongitude(lon)
Normalizes any longitude value to the range [0, 360) degrees.
Parameters:
lon (float) : (float) Longitude in degrees (can be any value, including negative or >360).
Returns: (float) Normalized longitude in range [0, 360).
string_to_planet(planetStr)
Converts a planet string identifier to Planet enum value.
Parameters:
planetStr (string) : (string) Planet name (case-insensitive). Supports formats: "Sun", "☉︎ Sun", "sun", "SUN"
Returns: (Planet) Corresponding Planet enum. Returns Planet.Sun if string not recognized.
@note Supported planet strings: Sun, Moon, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto
get_longitude(p, t, preferGeo)
Returns planetary longitude with automatic coordinate system selection.
Parameters:
p (series Planet) : (Planet) Planet to query.
t (float) : (float) Unix timestamp in milliseconds (use built-in 'time' variable).
preferGeo (bool) : (bool) If true, return geocentric; if false, return heliocentric.
Returns: (float) Longitude in degrees, normalized to range [0, 360).
@note Sun and Moon always return geocentric regardless of preference (heliocentric not applicable).
get_declination(p, t)
Returns planetary geocentric equatorial declination.
Parameters:
p (series Planet) : (Planet) Planet to query.
t (float) : (float) Unix timestamp in milliseconds (use built-in 'time' variable).
Returns: (float) Geocentric declination in degrees, range where positive is north.
@note Declination is always geocentric (no heliocentric equivalent in library).
get_speed(p, t)
Returns planetary geocentric longitude speed (rate of change).
Parameters:
p (series Planet) : (Planet) Planet to query.
t (float) : (float) Unix timestamp in milliseconds (use built-in 'time' variable).
Returns: (float) Geocentric longitude speed in degrees per day. Negative values indicate retrograde motion. Returns na for Moon.
@note Speed is always geocentric (no heliocentric equivalent in library). Moon speed calculation not implemented.
get_avg6_geo_lon(t)
get_avg6_geo_lon
@description Returns the arithmetic average of the geocentric longitudes for the six outer planets: Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average geocentric longitude of the six outer planets in degrees, range [0, 360).
get_avg6_helio_lon(t)
get_avg6_helio_lon
@description Returns the arithmetic average of the heliocentric longitudes for the six outer planets: Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average heliocentric longitude of the six outer planets in degrees, range [0, 360).
get_avg8_geo_lon(t)
get_avg8_geo_lon
@description Returns the arithmetic average of the geocentric longitudes for all eight classical planets: Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average geocentric longitude of all eight classical planets in degrees, range [0, 360).
get_avg8_helio_lon(t)
get_avg8_helio_lon
@description Returns the arithmetic average of the heliocentric longitudes for all eight classical planets: Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.
Parameters:
t (float) : (float) Time in Unix timestamp (milliseconds).
Returns: (float) Average heliocentric longitude of all eight classical planets in degrees, range [0, 360).
is_retrograde(p, t)
Returns true if the planet is currently in retrograde motion (geocentric speed < 0) == 0 = stationary.
Parameters:
p (series Planet) : The planet to check.
t (float) : Time in Unix timestamp (milliseconds).
Returns: true if the planet is in retrograde, false otherwise.
Library

Indicator

Indicator

Astro: Solar SystemA bird's eye view model of the solar system is a simplified representation of our planetary system as seen from above. It can be thought of as a two-dimensional map of the solar system, in which the planets are shown in their approximate heliocentric longitudinal positions relative to the Sun and each other.
In this model, the Sun is shown as a large, central emoji, with the planets arranged in orbits around it. The inner planets - Mercury, Venus, Earth, and Mars - are located close to the Sun and inside the asteroid belt, while the outer planets - Jupiter, Saturn, Uranus, Neptune, and Pluto- are located farther out.
In a bird's eye view model, some of the details of the solar system are necessarily left out or simplified. For example, the distances between the planets are not to scale, and the orbits are shown as perfect circles rather than the elliptical shapes they actually are. Nonetheless, this model can provide a useful visual real-time representation of the relative heliocentric longitudinal positions (aspects) of the planets in our solar system.
🏅 Shoutout to @LuxAlgo for the circle code! Indicator

Indicator

Indicator

Indicator

Indicator

Financial Astrology Indexes ML Daily TrendDaily trend indicator based on financial astrology cycles detected with advanced machine learning techniques for some of the most important market indexes: DJI, UK100, SPX, IBC, IXIC, NI225, BANKNIFTY, NIFTY and GLD fund (not index) for Gold predictions. The daily price trend is forecasted through planets cycles (angular aspects, speed phases, declination zone), fast cycles are based on Moon, Mercury, Venus and Sun and Mid term cycles are based on Mars, Vesta and Ceres . The combination of all this cycles produce a daily price trend prediction that is encoded into a PineScript array using binary format "0 or 1" that represent sell and buy signals respectively. The indicator provides signals since 2021-01-01 to 2022-12-31, the past months signals purpose is to support backtesting of the indicator combined with other technical indicator entries like MAs, RSI or Stochastic . For future predictions besides 2022 a machine learning models re-train phase will be required.
When the signal moving average is increasing from 0 to 1 indicates an increase of buy force, when is decreasing from 1 to 0 indicates an increase in sell force, finally, when is sideways around the 0.4-0.6 area predicts a period of buy/sell forces equilibrium, traders indecision which result in a price congestion within a narrow price range.
We also have published same indicator for Crypto-Currencies research portfolio:
DISCLAIMER: This indicator is experimental and don’t provide financial or investment advice, the main purpose is to demonstrate the predictive power of financial astrology. Any allocation of funds following the documented machine learning model prediction is a high-risk endeavour and it’s the users responsibility to practice healthy risk management according to your situation. Indicator

Financial Astrology Crypto ML Daily TrendThis daily trend indicator is based on financial astrology cycles detected with advanced machine learning techniques for the crypto-currencies research portfolio: ADA, BAT, BNB, BTC, DASH, EOS, ETC, ETH, LINK, LTC, XLM, XMR, XRP, ZEC and ZRX. The daily price trend is forecasted through this planets cycles (angular aspects, speed, declination), fast ones are based on Moon, Mercury, Venus and Sun and Mid term cycles are based on Mars, Vesta and Ceres. The combination of all this cycles produce a daily price trend prediction that is encoded into a PineScript array using binary format "0 or 1" that represent sell and buy signals respectively. The indicator provides signals since 2021-01-01 to 2022-12-31, the past months signals purpose is to support backtesting of the indicator combined with other technical indicator entries like MAs, RSI or Stochastic. For future predictions besides 2022 a machine learning models re-train phase will be required.
The resolution of this indicator is 1D, you can tune a parameter where you can determine how many future bars of daily trend are plotted and adjust an hours shift to anticipate future signals into current bar in order to produce a leading indicator effect to anticipate the trend changes with some hours of anticipation. Combined with technical analysis indicators this daily trend is very powerful because can help to produce approximately 60% of profitable signals based on the backtesting results. You can look at our open source Github repositories to validate accuracy using the backtesting strategies we have implemented in Jesse Crypto Trading Framework as proof of concept of the predictive potential of this indicator. Alternatively, we have implemented a PineScript strategy that use this indicator, just consider that we are pending to do signals update to the period July 2021 to December 2022: This strategy have accumulated more than 110 likes and many traders have validated the predictive power of Financial Astrology.
DISCLAIMER: This indicator is experimental and don’t provide financial or investment advice, the main purpose is to demonstrate the predictive power of financial astrology. Any allocation of funds following the documented machine learning model prediction is a high-risk endeavour and it’s the users responsibility to practice healthy risk management according to your situation. Indicator

Financial Astrology Saturn LongitudeSaturn energy strengthen the temperance, rectitude, constancy, greed, pessimism and precautionary. Under this influence the crowd will move with caution, slow and with strong and rigorous sense, analysing the environment in detail and deducting all the possible action outcomes based on the past experiences and utilising all the accesible wisdom. This cycle rules the land and real state, the state and institutions, officials, and regulations.
Due to the essential nature of this energy is expected that traders take more caution and reflexion in their investment decisions where Saturn transits through earth element (Taurus, Virgo, Capricorn) because the persons become more prudent and rigid. In water elements (Cancer, Scorpio and Pisces) traders will be reducing exposure to risky assets because the emotions are more unstable and the fear to loss results in risk aversion.
This cycle takes 29 years to complete so we don't have enough observations in the crypto-currencies sector to evaluate the potential effect of Saturn through all the zodiac signs but with the historical data available, there are some interesting patterns: the most bearish zodiac signs was Scorpio (water) and Capricorn (earth) and the most bullish was Sagittarius and Aquarius. This correlates well with other planet cycles where we have observed that air zodiac signs are usually bullish.
This indicator provides longitude since 2010 so will be limited in the zodiac signs that is possible to be analysed, however the periods of retrogradation and stationary speed phases could give interesting trading signals. We encourage you to analyse this cycles in different markets and share with us your observations, leave us a comment with your research outcomes. Happy research!
Note: The Saturn tropical longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the longitude is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart reference timezone. Indicator

Financial Astrology Venus LongitudeVenus energy influence the affections, beauty, passion, arts, festivities, finance, marriage, speculation. As a traders the Venus cycle will determine the affection, love and interest we manifest for specific industries that we perceive more fascinating and seductive for our speculation purposes. Financial astrologer Bill Meridian suggest that Venus rules the industries of "recreation, cosmetics, fashion, leisure".
Personally I believe that the affection to hold shares within specific industries will be determined by the zodiac sign position of Venus. For example, Venus in Aries will rule sports, war industry, high risk and volatility, in Taurus the land, agriculture, cattle raising, banks, exchanges and and desire for stability, in Gemini the mass media, newspapers, marketing, publishing house, conferences and desire to discuss the trending topics, in Cancer the real state, bars and restaurants, fishing and so forth with the standard zodiac sign industries rulership. Therefore, traders will feel more affection for the industries / emotional behavior ruled by the sign that Venus is transiting. Therefore, as Venus transition to other signs that are incompatible with an industry characteristics, that desire to hold shares in a given industry would diminish.
Within the financial astrology research we have identified that the BTCUSD bullish Venus zodiac signs are: Aries, Gemini, Leo, Virgo, Scorpio, Aquarius and Pisces. The bearish signs are: Taurus, Cancer, Libra and Capricorn. The other signs show mixed results. As expected, Aquarius was a prominent position due to the fact that represent "technology and innovation", Pisces seem very relevant because represent the destruction of the previous model, the end of the traditional banks financial system in favor of the decentralized finances (DeFI) approach. Aries, because is the entrepreneurship spirit of the new opportunities that arise with this financial system transition where masses are willing to start trying, exploring and taking risks (adventures) in this alternative way to manage and storing your assets. Leo because cryptocurrencies is the new tech fashion and hot speculation area. Virgo because it provide a perfect immutable decentralised database (the blockchain) that couldn't be altered or manipulated so is precise and exact financial system that correlate well with the precision and exactness affection we feel within Virgo influence.
With this indicator there is unlimited possibilities to explore across different markets to strudy how the Venus energy influence plays out, no more manual chart annotations to identify the zodiac sign location of Venus. We encourage you to analyze this zodiac sign cycles in different markets and share with us your observations, leave us a comment with your research outcomes. Happy research!
Note: The Venus tropical longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the longitude is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart reference timezone.
Indicator

Financial Astrology Moon LongitudeMoon energy represent the masses, crowds, public places, children and emotions. The transit of the Moon through the zodiacal signs will color the crowd emotional responses that fluctuate based on the elemental qualities of the signs: fire (energetic and impulsive), earth (rigid, static, patient), water (assimilation, transformation, humor fluctuations), air (expansion, fervent, germination).
The daily average speed of the Moon is 13 degrees, for this reason the emotional elemental energy is transforming in average every 2 days and few hours, this mood fluctuations produces the short term instinctive and emotional actions performed by traders that forget the precise mathematical / statistical approach in favor of irrational and emotional impulses.
Based on statistical buy/sell frequency analysis we discovered that for BTC-USD, the Moon is usually bullish in zodiac signs: Aries, Libra, Scorpio, Aquarius and Pisces, the most relevant bullish sign is "Aquarius", from 206 observations in all the BTC-USD price history where Moon was in this sign the 60% of those days the price increased compared to the previous day. The bearish zodiac signs for BTC-USD are: Taurus, Cancer, Leo, Sagittarius and Capricorn, the most relevant bearish sign is "Capricorn".
Interestingly this zodiac sign locations tends to fluctuate during some periods of time and from the last 10 observations of the Moon transiting through Aries we noted that 7 of the 10 observations coincide with a dip, sometimes the Moon in Aries indicate the reversal of the short term trend, this is kind of expected considering that when Moon approaches Taurus the fall becomes more likely due to the fact that Moon in Taurus is a bearish signal.
With this indicator there is unlimited possibilities to explore across different markets and complementing with Moon phases this may be the perfect financial astrology indicator for those intraday traders that keep positions only for few hours.
We encourage you to analyze the Moon zodiac sign cycles in different markets and share with us your observations, leave us a comment with your research outcomes. Happy trading!
Note: The Moon longitude indicator is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the longitude is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart reference timezone.
Indicator

Financial Astrology Mercury LongitudeMercury energy influence the mind, the intellect and mental temperament, in mundane astrology is well know that rules: news, science, debating, trading, commerce, contracts. telecommunication, short-distance travels, among others. W. D. Gann discovered that the Mercury speed phases (stationary, retrograde, direct) transitions was very relevant as trading signals, he used the Sun conjunction retrograde Mercury to confirm the formation of top and bottoms that seems to be a relevant leading indicator in multiples markets.
As part of the Financial Astrology Research Group experiments, we created hundreds of machine learning models that try to predict daily trend direction for a research portfolio of 10 crypto-currencies and is confirmed that including the Mercury speed and aspects features (variables) in the models increase the accuracy in a consistent manner. Therefore, there is enough evidence that Mercury is one of the most powerful mid term trading cycles.
This is the first open source PIneScript indicator that is able to plot the Mercury Tropical Longitude for the years 2010-2030, we publish as open source in order to support and simplify the research of the amazing astro-traders community at PulseWire that have been working manually with annotations and lines to represent the Mercury longitude zodiac signs entries and the speed phases transitions. That manual work is over. Let's move faster in our cycles research!
We encourage all astro traders to continue researching and sharing your ideas of astro cycles trading strategies with us and contribute your experiments at our Github Financial Stats exploration project
so we can improve the cosmic energy models that influence traders behaviours.
Note: The Mercury longitude is based on an ephemeris array that covers years 2010 to 2030, prior or after this years the longitude is not available, this daily ephemeris are based on UTC time so in order to align properly with the price bars times you should set UTC as your chart reference timezone.
Others astro trading indicators from Financial Astrology Research Group:
Indicator

Indicator

Strategy

[blackcat] L2 Ehlers Sine Wave Coupled Eight Planetary CycleLevel: 2
Background
Have you considered that factors outside the Earth will be related to macro market trends? Let’s discuss the relationship between the planetary movement in the Galaxy and the market movement on Earth today! Although I said that, you may have laughed out in front of the screen, but the calculations in this script are entirely based on astronomical data and mathematical relationships.
Your next question may be why you compare the movements of the eight planets and the laws of the market on the earth together? My answer comes from a Cybernetic Sine Wave indicator proposed by Dr. John F. Ehlers.
Function
L2 Ehlers Sine Wave Coupled Eight Planetary Cycle first converts the astronomical data of the eight major planets into planetary aspects/phases through mathematical relationships. Planetary aspects/phases can provide the historical and current relative positions of each planet in the mathematical triangle relationship. We can use a simple mathematical sine formula to constrain the planet's trajectory between -1 and 1, which is what we often call a sine wave.
The relationship between the sine wave and the market can be extracted from the theory of John F. Ehlers. In Ehlers' theory, market price can be modeled by the trend and cycle modes. And in his works, there are many indicators of how to completely remove the trend in the market price and only leave the cycle mode data. The Cybernetic Sine Wave indicator is exactly the cycle mode data after the market trend is stripped, and expressed in the form of a sine wave.
If you can read to here with patience, you must also be aware of the premise that the trajectories of the eight planets and the laws of the earth market can be coupled: the trajectory of the sine wave mode. Therefore, this indicator is a tool for comparing and analyzing the two in the same chart. I hope you like it.
Finally, in order to benchmark the trajectories of the eight planets and the specific market on the earth, a starting point in time is particularly important. This is the base date of the market index to be analyzed. It is the year, month, and day data specified by the index, which needs to be input by the user when analyzing a specific stock index. For example, the base date of the S&P 500 index is January 3, 1928. This date needs to be entered into the indicator to analyze the SPX500.
Key Signal
Mercury_trail ---> smoothed Mercury orbit sine wave
Venus_trail ---> smoothed Venus orbit sine wave
Earth_trail ---> smoothed Earth orbit sine wave
Earth_mirror ---> smoothed Earth mirrored orbit sine wave
Mars_trail ---> smoothed Mars orbit sine wave
Jupiter_trail ---> smoothed Jupiter orbit sine wave
Saturn_trail ---> smoothed Saturn orbit sine wave
Uranus_trail ---> smoothed Uranus orbit sine wave
Neptune_trail ---> smoothed Neptune orbit sine wave
Aspect 0, 45, 90, 225, 270 deg ---> key planet aspects
ehlersine ---> Ehlers Cybernetic Sine Wave
ehlerslsine ---> Ehlers Cybernetic Lead Sine Wave
Pros and Cons
This is a technical indicator that I have come up with on a whim, and the laws of planetary operation and the operation of the Earth market are still being explored. Hope that interested friends will share your new discoveries.
Remarks
To celebrate I released the 50th technical indicator script on TV!
Courtesy of @sal157011 John Ehlers "Cybernetic Sine Wave" indicator, I converted it from pine v2 to pine v4 in this script.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy. Indicator
