Credit to HPotter for that script
I took his script and added alerts to it. 2 lines lol
But anyway, useful to detect reversals by coloring bullish/bearish engulfing candles :)
Engulfings for bullish and bearish candles. Default is to compare to 20MA, but that is configurable. Bullish make white candles, bearish makes black candles. If the engulfing is against the direction of the MA, or if open and close are on opposite sides of the MA, the candles turn gray.
Most of the engulfing indicators i tried seemed to only look at the candle bodies which i didnt like. This one takes into account the highs and lows as well. You get less signals but each one seem to be more reliable.