The HiLo Activator study is a trend-following indicator introduced as part of the Gann Swing trading strategy. In addition to indicating the current trend direction, this can be used as both entry signal and trailing stop.
There are many scripts already published for this indicator, but I've found they didn't match the original one.
So here it is the Gann HiLo Activator as originally developed by Robert Krausz, in a 1998 article in the Stocks & Commodities magazine.
I've also added the option to select the type of Moving Average you would like to use.
Hope you enjoy!