indicator · on price · open source
Premium Array (OB Cluster) indicator
Premium Array (OB Cluster) is a free open-source indicator. Premium Array stacks the top boundaries of recent bearish order blocks above the current… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Premium Array (OB Cluster) does
Premium Array stacks the top boundaries of recent bearish order blocks above the current price. A dense cluster of equal-priced OBs is a high-probability short zone.
- Plot the most recent
maxObsbearish OB tops. - Use with an OB-touched signal for premium shorts.
- Cluster of 3+ OBs in a tight band = the institutional short zone.
- Premium arrays are the typical take-profit zone for shorts in a downtrend — price often taps multiple stacked OBs before reversing.
- A sweep of the lowest box in the array is the most aggressive reversal trigger.
- Triple-stacked premium arrays are rare and produce the largest reversals.
- The most recent OB is plotted with thicker line weight so it dominates visually.
- Tapping the premium array alerts you to a possible short entry when paired with a bearish CHoCH.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Premium Array (OB Cluster)", overlay=true)
swing = input.int(5, "Swing Length", minval=2, maxval=50)
maxObs = input.int(5, "Max OBs", minval=1, maxval=10)
lookback = input.int(30, "OB Lookback", minval=5, maxval=100)
bearColor = input.string("color.red", "Bear OB Color")
lineWidth = input.int(2, "Line Width", minval=1, maxval=5)
alertNew = input.bool(true, "Alert on New OB added")
alertTap = input.bool(false, "Alert when Price Taps Array")
transparency = input.int(80, "Fill Transparency", minval=50, maxval=99)
showLabels = input.bool(false, "Show OB Level Labels")
markerText = input.string("OB", "Marker Text")
colorDim = input.color("color.maroon", "Color Dim")
pl = ta.pivotlow(low, swing, swing)
var float lastPl = na
var float prevPl = na
var float ob1 = na
var float ob2 = na
var float ob3 = na
var float ob4 = na
var float ob5 = na
if not na(pl)
prevPl := lastPl
lastPl := pl
if not na(lastPl) and not na(prevPl) and lastPl < prevPl
found = false
for i = 1 to math.min(lookback, swing * 4)
if not found and close[i] > open[i]
ob5 := ob4
ob4 := ob3
ob3 := ob2
ob2 := ob1
ob1 := high[i]
found := true
break
p_Bear_OB_1 = plot(ob1, "Bear OB 1", color=bearColor, style=plot.style_linebr, linewidth=3)
p_Bear_OB_2 = plot(ob2, "Bear OB 2", color=colorDim, style=plot.style_linebr, linewidth=2)
p_Bear_OB_3 = plot(ob3, "Bear OB 3", color=colorDim, style=plot.style_linebr, linewidth=2)
p_Bear_OB_4 = plot(ob4, "Bear OB 4", color=colorDim, style=plot.style_linebr, linewidth=1)
p_Bear_OB_5 = plot(ob5, "Bear OB 5", color=colorDim, style=plot.style_linebr, linewidth=1)
alertcondition(not na(ob1) and na(ob1[1]), "New bearish OB added", "Bearish OB added to premium array")
alertcondition(high >= ob1 and close < ob1, "Premium array tapped", "Price tapped the top of the premium array")
alertcondition(high >= ob2 and close < ob2 and not (high >= ob1 and close < ob1), "Premium deep tap", "Price reached the second OB in the premium array")
No comments yet.
Sign in to comment.