-pimpmytrade- Snd Smc Course -

//@version=6 indicator("SnD SMC Zones (PimpMyTrade Style)", overlay=true) length = input.int(20, "Swing Length") zoneStrength = input.int(2, "Zone Strength")

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

Let me know your exact use case and I’ll build out the full feature for you. length) swLo = ta.pivotlow(low

// Demand zone (support) var float demandTop = na var float demandBottom = na if not na(swLo) demandTop := high[length] demandBottom := low[length] //@version=6 indicator("SnD SMC Zones (PimpMyTrade Style)"

// Plot zones bgcolor(not na(swHi) ? color.new(color.red, 85) : na) bgcolor(not na(swLo) ? color.new(color.green, 85) : na)

// Find swing highs/lows swHi = ta.pivothigh(high, length, length) swLo = ta.pivotlow(low, length, length)

// Supply zone (resistance) var float supplyTop = na var float supplyBottom = na if not na(swHi) supplyTop := high[length] supplyBottom := low[length] supplyBottom

We use cookies to ensure that we give you the best experience on our website. By continuing to use our website, you are agreeing to our use of cookies.

Kindly take a few minutes to read our cookie policy and privacy policy.