Moon Phases Strategy
By LuxAlgoOct 29, 2021
Moon Phases Strategy is a strategy on Vela, our next-generation charting platform, written in Pine Script®.
Moon Phases Strategy trades the calendar instead of the tape: it approximates the lunar cycle at 29.530588853 days from a reference new moon and opens or closes positions as each phase arrives. It is the house take on astro cycles, less an endorsement than a rigorous way to test whether lunar timing survives contact with your market. Real lunar cycles are not perfectly periodic, so the strategy is most coherent on higher timeframes, where small phase drift stops mattering.
How to Trade the Moon Phases Strategy?
- Default cycle: buy the full moon, sell the new moon; both conditions can be inverted outright to the classic formulation, buying the new moon and selling the full moon.
- Higher/lower moons: a trend-following variant buys when price at a lunar event exceeds its level at the previous one and sells on lower moons; flip it for a contrarian read that fades those moves.
- Independent conditions: the buy rule and sell rule are set separately, so the long trigger and the short trigger can follow different lunar logic.
Because phase events arrive on a fixed rhythm regardless of price, judge it the way you would any of the time-and-seasonality tools: across long histories and many cycles, never on a handful of trades.
Moon Phases Strategy Settings
- New Moon Reference Date: the anchor from which all lunar cycles are counted; every phase event is projected forward from here.
- buy (default Full Moon): the lunar rule that opens long positions.
- sell (default New Moon): the lunar rule that initiates shorts.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.
.png&w=1200&q=75)




