OPEN-SOURCE SCRIPT

Doji & wick Detector

179
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.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。