The base code for this indicator was created by RicardoSantos and can be found here :
What I added is a signal line that indicates when to buy and when to sell.
Advised use :
Combine with a zero-lag indicator like ZeroLagEMA_LB by LazyBear (suggested period = 34)
Then use the following Rules of engagement ...