indicator · on price · open source
Support Resistance Zones indicator
Support Resistance Zones is a free open-source indicator by @deepwick. S/R zones — the band between the latest confirmed swing high and swing low, shaded as a… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Support Resistance Zones does
S/R zones — the band between the latest confirmed swing high and swing low, shaded as a single confluence zone.
- Single purple band = the area price is mean-reverting inside.
- A close outside the band breaks structure and the band resets on the next pivot.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Support Resistance Zones", overlay=true)
swing = input.int(12, "Swing strength", minval=2, maxval=50)
colorBg = input.color("color.purple", "Color Bg")
ph = ta.pivothigh(high, swing, swing)
pl = ta.pivotlow(low, swing, swing)
top = ta.valuewhen(not na(ph), ph, 0)
bot = ta.valuewhen(not na(pl), pl, 0)
p_ZoneTop = plot(top, "ZoneTop", color=colorBg, style=plot.style_linebr)
p_ZoneBottom = plot(bot, "ZoneBottom", color=colorBg, style=plot.style_linebr)
fill(p_ZoneTop, p_ZoneBottom, color=color.new(colorBg, 92))
No comments yet.
Sign in to comment.