SRT Indicator script based on Knowledge sharing by NK
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © rvc8280

//@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))