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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.