OPEN-SOURCE SCRIPT
Moon Phases Final

Moon Phases Visualizer [Gemini Edition]DescriptionThis script is a comprehensive tool for traders who incorporate lunar cycles into their analysis. Unlike many basic indicators, this one is optimized for Pine Script v6 and utilizes a precise astronomical calculation based on the synodic month cycle ($29.53059$ days).The indicator helps identify potential "turn window" periods often associated with New Moons and Full Moons in financial astrology and cyclical analysis.Key FeaturesDual Visualization: Displays a smooth lunar cycle oscillator ($0-100\%$) in a separate pane while simultaneously plotting phase labels directly on the price chart.Smart Overlays: Using the latest force_overlay technology, the script keeps your price scale clean while showing Moon emojis (🌕/🌑) and an info table in the main area.Real-time Tracking: An elegant dashboard in the top-right corner shows the current phase percentage and status at a glance.Full Moon & New Moon Alerts: Visual signals are generated at the exact peak of the cycle, making it easy to spot historical correlations with price reversals or volatility spikes.How to read it:🌕 Full Moon (50%): Often associated with high volatility or local price extremes.🌑 New Moon (0%/100%): Often marks the beginning of a new cycle or a potential trend exhaustion.The Curve: Watch the oscillator to anticipate approaching lunar events before they happen.Technical DetailsThe calculation is anchored to a high-precision historical New Moon timestamp (January 6, 2000), ensuring the phase accuracy remains consistent even when scrolling back through years of historical data.
Disclaimer: This indicator is for educational and entertainment purposes only. Lunar cycles are a part of financial astrology and cyclical analysis, but they should not be used as a standalone signal for trading. Past performance does not guarantee future results. Always use proper risk management and combine this tool with other technical or fundamental analysis methods. Not financial advice.
Disclaimer: This indicator is for educational and entertainment purposes only. Lunar cycles are a part of financial astrology and cyclical analysis, but they should not be used as a standalone signal for trading. Past performance does not guarantee future results. Always use proper risk management and combine this tool with other technical or fundamental analysis methods. Not financial advice.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.