MMerhabalar, aradığım indikatörü yaışlar belki sizlerde yapabilirsiniz. günlük haftalık veya aylık pivot range aaralığı yuzde 1 den az olanları gösteren taramayı yazmam lazım. formülü şu şekilde tradingview de...
study(title="CPR Width", shorttitle="CPR Width")
pivottimeframe = input(title="Pivot Resolution", defval="D", options=["D", "W", "M"])
//dp in the prefix implies daily pivot calculation
dpopen = security(syminfo.tickerid, pivottimeframe, open[1], barmerge.gaps_off, barmerge.lookahead_on)
dphigh = security(syminfo.tickerid, pivottimeframe, high[1], barmerge.gaps_off, barmerge.lookahead_on)
dplow = security(syminfo.tickerid, pivottimeframe, low[1], barmerge.gaps_off, barmerge.lookahead_on)
dpclose = security(syminfo.tickerid, pivottimeframe, close[1], barmerge.gaps_off, barmerge.lookahead_on)
//CPR Calculation
pivot = (dphigh + dplow + dpclose) / 3.0
bc = (dphigh + dplow) / 2.0
tc = pivot - bc + pivot
width = (abs(tc - bc) / pivot) * 100
plot(width, title="CPR Width", style = plot.style_columns, color = (width<0.50? color.green: color.red), transp=0)
band0 = hline(0.25)
band1 = hline(0.50)
band2 = hline(0.75)