OPEN-SOURCE SCRIPT

Moon Phases + Daily, Weekly, Monthly, Quarterly & Yearly Breaks

█ Moon Phases

From LuxAlgo description.

Trading moon phases has become quite popular among traders, believing that there exists a relationship between moon phases and market movements.
This strategy is based on an estimate of moon phases with the possibility to use different methods to determine long/short positions based on moon phases.

Note that we assume moon phases are perfectly periodic with a cycle of 29.530588853 days (which is not realistically the case), as such there exists a difference between the detected moon phases by the strategy and the ones you would see. This difference becomes less important when using higher timeframes.

█ Daily, Weekly, Monthly, Quarterly & Yearly Breaks

This indicator marks the start of the selected periods with a vertical line that help with identifying cycles.
It allows to enable or disable independently the daily, weekly, monthly, quarterly and yearly session breaks.


This script is based on LuxAlgo and kaushi / icostan scripts.

Moon Phases Strategy [LUX]
Moon Phases Strategy [LuxAlgo]


Year/Quarter/Month/Week/Day breaks
Year/Quarter/Month/Week/Day breaks


Month/week breaks
Month/week breaks
CyclesDAYlunarmonthmoonPivot points and levelsquarterseparatorTrend Analysisverticalweekyear

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer