Dynamic SUPRES

Dynamic SUPRES can be interpreted in different ways. Each square marks an area of congestion that could serve as support and resistance .
Open-source Skript

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Möchten Sie dieses Skript auf einem Chart verwenden?
study(title="Dynamic SUPRES",shorttitle="DySR", overlay=true)

multiplier = input(title="M", type=float, defval=1.21, minval=0.5, maxval=1.9)
anomalia = security(tickerid,period, abs(open-close) > multiplier*sma(tr,5)) ? 1 : 0
atr = sma(tr,5)
dot = (anomalia == 1 and close<open)?open+atr:(anomalia == 1 and close>open)?open-atr:na
plotshape(dot,style=shape.square, color=black, location=location.absolute, transp=0)