Reputation: 11
// Plot circles based on conditions
var plot Shape = na
if (array.sum(above200) >= 3 and close > sma1m)
Shape := shape.circle
Colour := color.new(color.green, 60)
if (array.sum(below200) >= 3 and close < sma1m)
Shape := shape.circle
Colour := color.new(color.red, 60)
// Plot circles
plotshape(Shape, color=Colour, location=location.belowbar, size=size.small)
error message is var plot Shape = na 'plot' is not a valid type keyword in variable declaration
Upvotes: 0
Views: 23