Code: Select all
drawShape = false
if CONDITION IS FULFILLED
drawShape := true
plotshape(drawShape, color=#FFFF00, location=location.belowbar)
Code: Select all
drawShape = false
if CONDITION IS FULFILLED
drawShape := true
plotshape(drawShape, color=#FFFF00, location=location.belowbar)
Code: Select all
// © processingclouds
//@version=5
indicator("My script", overlay = true)
plot(close)
drawShape := true
plotshape(drawShape ? low - 1 : na, color=#FFFF00, location=location.absolute)