This is the indicator describe by
Here is the Prorealtime code :
//pararemeters:
//n = 20
//periodFast = 5
//periodSlow = 21
DTR = max(max(High - Low[2], abs(High - Close[2])),max(abs(Low - Close[2]),(abs(Low - Close[2]))))
price = typicalprice
avg = average[n](DTR)
st = std[n](DTR)
maFast = average[periodFast](close)
maSlow = average[periodSlow](close)
if maFast<maSlow then
WarningLine = price+avg
Dev1 = price+avg + st
Dev2 = price+avg + 2.2*st
Dev3 = price+avg + 3.6*st
else
WarningLine = price-avg
Dev1 = price-avg - st
Dev2 = price-avg - 2.2*st
Dev3 = price-avg - 3.6*st
endif
RETURN Warningline coloured(255,0,0) as "WarningLine", Dev1 coloured(2, 118, 253) as "DevStop1", Dev2 coloured(20, 100, 244) as "DevStop2", Dev3 coloured(1, 71, 250) as "DevStop3"