OPEN-SOURCE SCRIPT

Gann HiLo Activator Strategy

█ OVERVIEW

Strategy based on the Gann Hilo Activator. This is a trend following strategy, which means it will go long (and close the previous short position) once the price closes above the high SMA, and go short (and close the previous long position) once the price closes below the low SMA.

█ PARAMETERS

- Length
- Displace (or offset): default is 1
- Begin from start: strategy will run since the beggining
- From year, month, day: Choose an specific date to start backtesting (must disable the parameter above to work)

█ HOW TO USE

After choosing the start date to run the strategy, you can change the length field and look at the backtest results to find the most optimal settings for the current symbol.

This strategy was tested on the stock and crypto market with good results. Hope you enjoy!
backtestingHILOGann HiLo ActivatorstrategyTrend Analysistrendfollowing

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