Since you guys started adding custom indicators … heres the popular and practical strategy by- NK Stock Talk(Youtube) Heilaga-Milaga and SRT(source code is given bellow) if you guys add these two than i dont have go tradingview anymore …thank you…
Heliga-Milaga–
//@version=4
study(title=“Hilega Milega”, shorttitle=“HM”, format=format.price, precision=2, resolution=“”)
len = input(9, minval=1, title=“Length”)
src = input(close, “Source”, type = input.source)
_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”)
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-WMA”)
plot(ema_3, color=color.green, style=plot.style_line, linewidth=2,title=“Price-EMA”)
SRT–
//@version=5
indicator(“SRT_NK”,shorttitle = “SRT”)
// 1. In a year, there are 248/ 252 trading days .
// 2. Half of this is 124. Even 125/ 126 can be taken.
sma_period = 124
srt_sma = ta.sma(close, sma_period)
SRT_124 = close / srt_sma
plot( SRT_124, color=color.blue)
Lev_70 = plot(0.7, title=‘L_70’, color=color.new(color.gray, 0))
Lev_80 = plot(0.8, title=‘L_80’, color=color.new(color.gray, 0))
lev_90 = plot(.9, title=‘L_90’, color=color.new(color.gray, 0))
Lev_135 = plot(1.35, title = ‘Lev_1.35’, color =color.new(color.orange,0))
lev_15 = plot(1.5, title = ‘L_1.5’, color=color.new(color.red, 0))