Its the SSL Channel Indicator
It is a kind of Hi/Lo activator of a channel formed by 2 MA applied to High and Low price series, works like magic!
Anyone who is able to make this indicator in NinjaTrader 8?
////////////////// code of prorealtime..
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"
///////////////////////////////////
Comment