I found this indicator on TradingView, and I thought could be interesting.
I added arrows at the crossovers of the two signal lines.
It is a kind of Hi/Lo activator of a channel formed by 2 MA applied to High and Low price series.
//coded by AlexF//
//////////////////
period = 20
type = 0
smaHigh=Average[period,type](high)
smaLow=Average[period,type](low)
if close>smaHigh then
Hlv=1
elsif close<smaLow then
Hlv=-1
else
Hlv=Hlv[1]
endif
if Hlv<0 then
sslDown=smaHigh
else
sslDown=smaLow
endif
if Hlv<0 then
sslUp=smaLow
else
sslUp=smaHigh
endif
if sslUp crosses over sslDown then
drawarrowup(barindex,low-5*pipsize)coloured(0,255,0)
elsif sslDown crosses over sslUp then
drawarrowdown(barindex,high+5*pipsize)coloured(255,0,0)
endif
return sslUp as "UP", sslDown as "DOWN"