OPEN-SOURCE SCRIPT

4 Candle Analysis

Updated
This script looks at 4 candles at a time.

If the first 3 candles in the pattern are BEARISH and the 4th candle BULLISH engulfs the 3rd candle then a GREEN triangle UP will display BELOW the 4th candle

If the first 3 candles in the pattern are BULLISH and the 4th candle BEARISH engulfs the 3rd candle then a RED triangle DOWN will display ABOVE the 4th candle
Release Notes
Code cleanup
Release Notes
Removed the 5th candle logic - did not work anyway
Release Notes
Updating logic so that the third candle close can equal third candle open (Doji pattern)
Candlestick Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer