OPEN-SOURCE SCRIPT

Astro Cycle Confluence Swing [Jayadev Rana]

127
Astro Cycle Confluence Swing is an experimental daily-timeframe indicator that builds swing buy and sell signals purely from astronomical time cycles. It reads no price to compute the cycles: every celestial value is a deterministic function of the bar's UTC timestamp, so the cycle track is fixed in advance and does not repaint.

WHAT IT COMBINES
The script fuses eight classic cycle ideas into two composite readings:
1. Lunar synodic phase - new moon and full moon turning points, plus a phase bias.
2. Lunar anomalistic distance - perigee and apogee windows (often associated with volatility).
3. Lunar declination cycle - a tropical-month oscillation (approximate).
4. Solar season and declination - the four Gann cardinal points (equinoxes and solstices).
5. Planetary synodic composite - a weighted sum of cosines of the heliocentric angular separations between planet pairs from Mercury through Saturn. This is an original construction inspired by classic planetary cycle models, not a copy of any specific one.
6. Mercury retrograde window - a synodic inferior-conjunction proxy (approximate).
7. Gann time cycles - calendar-day counts (30, 45, 60, 90, 120, 144, 180, 270, 360) measured from the last confirmed swing pivot.
8. Fibonacci time cycles - Fibonacci day counts (13, 21, 34, 55, 89, 144, 233) from the same anchor.

HOW SIGNALS FORM
Two composites are derived on each bar:
- Net Astro Bias (range -1 to +1): a weighted blend of the directional components (lunar phase, planetary composite, seasonal momentum, lunar declination).
- Turn Energy (range 0 to 1): a weighted blend of the event components (moon phase change, perigee or apogee, cardinal points, planetary composite extreme, Gann and Fibonacci time hits, Mercury station).
A BUY prints when Net Astro Bias crosses up through the bias threshold while Turn Energy is elevated within a small window around an astro event. A SELL is the mirror. Optional filters can also require price to sit at a swing extreme, require a confirming candle, and enforce a minimum bar gap between same-side signals.

INPUTS
- Signal engine: bias threshold, turn-energy threshold and reference, turn window, minimum gap, swing-extreme filter, confirming-candle filter.
- Directional bias weights: per-theory weights and a lunar-bias invert switch.
- Turning-point weights: per-event weights.
- Cycle anchor: swing pivot strength used for the Gann and Fibonacci time counts.
- Display: signal markers, bias background tint, dashboard position, and colors.

DASHBOARD
A table summarizes the current lunar phase and illumination, lunar distance and declination state, season and solar declination, planetary composite value and direction, Mercury direct or retrograde state, days since the anchor, Net Astro Bias, Turn Energy, and the active signal.

ALERTS
Two alertcondition slots (BUY and SELL) plus dynamic alert() calls that name the current ticker.

INTENDED USE
Built for the 1-day timeframe as a swing tool. The dashboard shows a reminder when the chart is not daily. It works on any symbol because the cycles are time-based rather than instrument-based.

LIMITATIONS AND NOTES
- All ephemeris terms use mean orbital elements that are linear in time. They are approximations suitable for multi-day cycle timing, not for arc-second astronomy. Event timing can be off by about a bar.
- Astronomical and astrological market cycles are a speculative and unproven framework. This tool is provided for study and experimentation, not as a forecast.
- The Gann and Fibonacci time anchors update on confirmed pivots, and a pivot confirms only after the pivot-strength number of bars, so those anchor-based rows lag by that many bars. The astronomical crossings themselves are exact and do not repaint.

DISCLAIMER
This script is for educational and informational purposes only. It is not financial advice and does not guarantee any result. Past cycle alignments do not predict future price. Always do your own research and manage your own risk.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.