Gann HiLo Activator Strategy


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 .


- 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)


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!
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 a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?