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.
Trading on leveraged financial instruments may expose you to risk of loss greater than your deposits and is only suitable for experienced clients with the financial means to bear such risk. Trading on foreign exchange instruments (Forex) and contracts for difference (CFDs) is highly speculative and particularly complex and comes with a high level of risk due to leverage. You must ensure that you understand how these instruments work and that you can afford to take the high risk of losing your money. No information on this site is investment advice or a solicitation to buy or sell any financial instruments.