Hello, would anyone be able to help. I was hoping to code an indicator that puts either a red (sell) or green (buy) marker above/below the candlesticks on the chart if the candle closes outside the Bollinger band and the next candle closes in the band via an engulfing candle (I define an engulfing candle as the body of the engulfing has a higher body high and a lower body low to that of the previous candle).
This indicator would be based off a standard 20SMA 2 standard deviation Bollinger band.
Please see attached link for a visual representation.
Many Regards
Joe
https://www.tradingview.com/x/qYkT2gNH/