Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=3
- study("T3 RSI", overlay=false)
- length1 = 5
- a1 = 0.618
- e1=ema((high + low + 2*close)/4, length1)
- e2=ema(e1,length1)
- e3=ema(e2,length1)
- e4=ema(e3,length1)
- e5=ema(e4,length1)
- e6=ema(e5,length1)
- c1=-a1*a1*a1
- c2=3*a1*a1+3*a1*a1*a1
- c3=-6*a1*a1-3*a1-3*a1*a1*a1
- c4=1+3*a1+a1*a1*a1+3*a1*a1
- T3=c1*e6+c2*e5+c3*e4+c4*e3
- //plot(T3, color=blue, linewidth=3, title="T3")
- //////
- length2 = 8
- _a1 = 0.618
- _e1=ema((high + low + 2*close)/4, length2)
- _e2=ema(_e1,length2)
- _e3=ema(_e2,length2)
- _e4=ema(_e3,length2)
- _e5=ema(_e4,length2)
- _e6=ema(_e5,length2)
- _c1=-_a1*_a1*_a1
- _c2=3*_a1*_a1+3*_a1*_a1*_a1
- _c3=-6*_a1*_a1-3*_a1-3*_a1*_a1*_a1
- _c4=1+3*_a1+_a1*_a1*_a1+3*_a1*_a1
- _T3=_c1*_e6+_c2*_e5+_c3*_e4+_c4*_e3
- myOSC1 = T3 -_T3
- myT3RSI = rsi(myOSC1, 8)
- final = ema(myT3RSI, 13)
- hline(80)
- hline(20)
- plot(final,color=blue,transp=0)
Advertisement
Add Comment
Please, Sign In to add comment