OPEN-SOURCE SCRIPT
Doji & wick Detector

Doji Detector Simple and clean Doji candle identifier.This indicator detects Doji candles based on the ratio between the real body and the full candle range. A Doji is plotted when the body is very small relative to the high-low range, signaling market indecision.Features:Accurate Doji detection with protection against division by zero
Clear gray × marker on qualifying candles
Optional background highlight for easy visual scanning
Fully customizable via inputs (Doji threshold, highlight option, etc.)
How it works:A candle is considered a Doji when:
Real Body / Candle Range ≤ Doji ThresholdDefault threshold is typically low (e.g. 0.1–0.2) to catch strong indecision candles.Ideal for:Reversal pattern confirmation
Support & Resistance zones
Price action trading strategies
Combining with other indicators (RSI, Volume, EMA, etc.)
Tip: Lower the Doji threshold for stricter (narrower body) detection.
Clear gray × marker on qualifying candles
Optional background highlight for easy visual scanning
Fully customizable via inputs (Doji threshold, highlight option, etc.)
How it works:A candle is considered a Doji when:
Real Body / Candle Range ≤ Doji ThresholdDefault threshold is typically low (e.g. 0.1–0.2) to catch strong indecision candles.Ideal for:Reversal pattern confirmation
Support & Resistance zones
Price action trading strategies
Combining with other indicators (RSI, Volume, EMA, etc.)
Tip: Lower the Doji threshold for stricter (narrower body) detection.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.