I want to implement one custom indicator that is being developed using RSI and along with that I also need Ehler Fisher indicator in the same script but having trouble as the Ehler Fisher indicator is coming out to be very small. I want to distribute these two indicators(RSI + Ehler Fisher) in equal panes
I am using the below code
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////// HILEGA MILEGA ///////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// study(title="Hilega-Milega", shorttitle="Hilega-Milega", format=format.price, precision=2, resolution="",overlay = false) len = input(9, minval=1, title="Length") rsi_src = input(close, "Source", type = input.source) _rsi=rsi(rsi_src,len) h_50=plot(50,color=color.green,style=plot.style_line, linewidth=1,title="Line -50 ") p_rsi=plot(_rsi,color=color.black,style=plot.style_line,linewidth=2 ,title="RSI - Plot") fill(p_rsi, h_50, color = _rsi > 50 ? color.red:color.aqua,transp=50) wma_21=wma(_rsi,21) ema_3=ema(_rsi,3) plot(wma_21, color=color.red, style=plot.style_line, linewidth=2, title="Strength") plot(ema_3, color=color.green, style=plot.style_line, linewidth=2,title="Price") // indicator(title="Fisher Transform", shorttitle="Fisher", format=format.price, precision=2, timeframe="", timeframe_gaps=true) ef_len = input(9, minval=1, title="Length") high_ = highest(hl2, ef_len) low_ = lowest(hl2, ef_len) round_(val) => val > .99 ? .999 : val < -.99 ? -.999 : val value = 0.0 value := round_(.66 * ((hl2 - low_) / (high_ - low_) - .5) + .67 * nz(value[1])) fish1 = 0.0 fish1 := .5 * log((1 + value) / (1 - value)) + .5 * nz(fish1[1]) fish2 = fish1[1] hline(1.5, "1.5", color=#E91E63) hline(0.75,"0.75", color=#787B86) hline(0, "0", color=#E91E63) hline(-0.75, "-0.75", color=#787B86) hline(-1.5, "-1.5", color=#E91E63) plot(fish1, color=#2962FF, title="Fisher") plot(fish2, color=#FF6D00, title="Trigger") 1 Reset to default