OPEN-SOURCE SCRIPT

Doji Finder

By DX-23
Modified version of HPotter's "Doji and Near Doji automatic finding script".

Candles are classified based on not just the size of the body but also the distance from the close to the high/low. This avoids classifying a reversal candle with a long wick but a strong close as a doji.
Candlestick AnalysisCandlestick analysisDoji

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