OPEN-SOURCE SCRIPT
Moon Phases Prediction

🌙 Moon Phases (with Next Event Projection)
Introduction
This indicator plots Moon Phases (New Moon and Full Moon) directly on your chart.
In addition to showing historical phases, it also calculates and projects the upcoming next moon phase using precise astronomical formulas.
Features
How It Works
Customization
Use Cases
Notes
- The future moon event is displayed as a circle label on the correct date.
- If you cannot see the label, increase your chart’s right margin (Chart Settings → Scales → Right Margin).
- Calculations are approximate but astronomically accurate enough for trading or visual use.
Conclusion
This indicator is a simple yet powerful tool for traders interested in the influence of lunar cycles.
By combining historical phases with a projected next event, you can always be aware of where the market stands in the moon cycle timeline.
Introduction
This indicator plots Moon Phases (New Moon and Full Moon) directly on your chart.
In addition to showing historical phases, it also calculates and projects the upcoming next moon phase using precise astronomical formulas.
Features
- Marks New Moons with circles above bars.
- Marks Full Moons with circles below bars.
- Dynamically adjusts background color based on waxing/waning phase.
- Calculates and displays the next upcoming moon event as a label positioned in the future.
- Works on all timeframes (except Monthly).
How It Works
- Uses astronomical approximations (Julian Day → UNIX time conversion).
- Detects the last occurred New Moon or Full Moon.
- Projects the next moon event by adding half a synodic month (~14.77 days).
- Displays the next event label at its exact future date on the chart.
Customization
- Waxing Moon color (default: Blue)
- Waning Moon color (default: White)
Use Cases
- Astro-finance: lunar cycles and market psychology.
- Trading strategies: aligning entries/exits with cyclical behavior.
- Visualization: adding an extra dimension of timing to chart analysis.
Notes
- The future moon event is displayed as a circle label on the correct date.
- If you cannot see the label, increase your chart’s right margin (Chart Settings → Scales → Right Margin).
- Calculations are approximate but astronomically accurate enough for trading or visual use.
Conclusion
This indicator is a simple yet powerful tool for traders interested in the influence of lunar cycles.
By combining historical phases with a projected next event, you can always be aware of where the market stands in the moon cycle timeline.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
微信 Wechat:yubolun001 (备注:TV)
------------
Binance 优惠:
accounts.binance.com/zh-CN/register?ref=X1PFQ12Z
Bitget 优惠:
partner.bitget.fit/bg/MRSHJ6
OKX 优惠:
okx.com/join/86487038
------------
Binance 优惠:
accounts.binance.com/zh-CN/register?ref=X1PFQ12Z
Bitget 优惠:
partner.bitget.fit/bg/MRSHJ6
OKX 优惠:
okx.com/join/86487038
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
微信 Wechat:yubolun001 (备注:TV)
------------
Binance 优惠:
accounts.binance.com/zh-CN/register?ref=X1PFQ12Z
Bitget 优惠:
partner.bitget.fit/bg/MRSHJ6
OKX 优惠:
okx.com/join/86487038
------------
Binance 优惠:
accounts.binance.com/zh-CN/register?ref=X1PFQ12Z
Bitget 优惠:
partner.bitget.fit/bg/MRSHJ6
OKX 优惠:
okx.com/join/86487038
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.