Let me know your exact use case and I’ll build out the full feature for you.
plotshape(swHi, "Supply", shape.labeldown, location.abovebar, color.red, text="S") plotshape(swLo, "Demand", shape.labelup, location.belowbar, color.green, text="D") -PimpMyTrade- SnD SMC Course
// Plot zones bgcolor(not na(swHi) ? color.new(color.red, 85) : na) bgcolor(not na(swLo) ? color.new(color.green, 85) : na) Let me know your exact use case and
// Find swing highs/lows swHi = ta.pivothigh(high, length, length) swLo = ta.pivotlow(low, length, length) length) swLo = ta.pivotlow(low