plotshape(bullishrej and not (state ==- 1) ? low * 0.9995 : na, "Bullish Reversal", shape.triangleup, location.belowbar, color.new(green, 0), size = size.tiny, text = "𝓡", textcolor = color.gray)
plotshape(bearishrej and not (state == 1) ? high * 1.0005 : na, "Bearish Reversal", shape.triangledown, location.abovebar, color.new(red, 0), size = size.tiny, text = "𝓡", textcolor = color.gray)
plotshape(bullishbreakout ? low * 0.999 : na, "Bullish Breakout", shape.diamond, location.belowbar, color.new(yellow, 0), size = size.tiny, text = "𝓑", textcolor = color.gray)
plotshape(bearishbreakout ? high * 1.001 : na, "Bearish Breakout", shape.diamond, location.abovebar, color.new(yellow, 0), size = size.tiny, text = "𝓑", textcolor = color.gray)