For Nmike Divergence Room
//@version=2 study("Trix Bubble") //Length setting lengtha = input(5, minval=1) lengthb = input(7,minval=1) lengthc= input(9,minval=1) lengthd =input(11,minval=1) lengthe = input(14,minval=1) Trix = 10000 * change(ema(ema(ema(log(close), lengtha), lengtha), lengtha)) // TRIX 5 Trixa = 10000 * change(ema(ema(ema(log(close), lengthb), lengthb), lengthb))// TRIX 7 Trixb = 10000 * change(ema(ema(ema(log(close), lengthc), lengthc), lengthc))// TRIX 9 Trixc = 10000 * change(ema(ema(ema(log(close), lengthd), lengthd), lengthd))// TRIX 11 Trixd = 10000 * change(ema(ema(ema(log(close), lengthe), lengthe), lengthe))// TRIX 14 plot(Trix, color=green, title="TRIX") plot(Trixa, color=purple, title="TRIX") plot(Trixb, color=blue, title="TRIX") plot(Trixc, color=maroon, title="TRIX") plot(Trixd, color=black, title="TRIX")