Its a simple analysis using Candle Pattern Technique, Engulfing. The script will find the engulf candle by considering three bars before. For Bullish Engulfing it will be colored by yellow, and for Bearish will be white. I reccomend you for using this script in Daily Time Frame.
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 :)
Continuing deeper and stronger with the screeners serie. I keep getting requests private messages and requests saying that screeners aren't possible with TradingView.
My answer is always... "Reallyyy ??" (I never find a better answer than that...)
I'll publish a few screeners just for everyone to understand what can be done with Pinescript. We...
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.
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.