REM WAVE TREND OSCILLATOR
//
// @author LazyBear
//
// If you use this code in its original/modified form, do drop me a note.
// código original de la plataforma Tradingview
//adaptación para Prorealtime por bolsatrilera
n1 = 10 //"Channel Length")
n2 = 21 //"Average Length")
obLevel1 =60 //"Over Bought Level 1")
obLevel2 =53//"Over Bought Level 2")
osLevel1 =-60// "Over Sold Level 1")
osLevel2 =-53//"Over Sold Level 2")
ap = (high+low+close)/3
esa =ExponentialAverage[n1](ap)
d = ExponentialAverage[n1](abs(ap - esa))
ci = (ap - esa) / (0.015 * d)
tci = ExponentialAverage[n2](ci)
wt1 = tci
wt2 =Average[4](wt1)
return 0 coloured (128,128,128)as "0",obLevel1 coloured (255,0,0)as "obLevel1",osLevel1 coloured (0,128,0)as "osLevel1",obLevel2 coloured(255,0,0) style (point)as "obLevel2",osLevel2 coloured (0,128,0)style(point)as "osLevel2",wt1 coloured(0,128,0)as "wt1",wt2 coloured(255,0,0)style(point)as "wt2",wt1-wt2 coloured(0,0,255)as "wt1-wt2"