ArchitectureStrategiesResearchWhy UsPricing
Price Action Pattern Candlestick Pattern Recognition

CDLDRAGONFLYDOJI: Dragonfly Doji

Dragonfly Doji

Visual Rule Syntax: @CDLDRAGONFLYDOJI(open, high, low, close) == 100

Key Takeaways

  • Detects high-probability short-term turning points using Dragonfly Doji formations.
  • Emits discrete values (+100 bullish, -100 bearish, 0 none) ideal for entry gating.
  • Most reliable when combined with a broader trend filter (e.g. price above 200-day SMA).

What It Means in Simple Terms

Dragonfly Doji is a Japanese candlestick formation that reads the emotional battle between buyers and sellers on recent price bars. It flags moments where aggressive buying or selling pressure exhausted itself, signaling an imminent short-term turning point.

How It Helps You as an Investor

It gives you a precise, objective entry trigger. Rather than guessing when a pullback is over, you can require the appearance of a confirmed Dragonfly Doji before initiating a swing position.

Visual Node Rule Syntax & How to Plug in Values

Visual Node Expression No Code Required
@CDLDRAGONFLYDOJI(open, high, low, close) == 100

Parameter Tuning & Market Calibration

Candlestick patterns take the 4 standard OHLC price fields: open, high, low, close. The indicator outputs discrete integers: `+100` for a confirmed bullish Dragonfly Doji, `-100` for a bearish formation, and `0` when no pattern is present. Plug into your rules as `@CDLDRAGONFLYDOJI(open, high, low, close) == 100`.

Input Fields & Parameters

Field / Parameter Type Default Role & Description
open field Required Historical input price or volume series from market feed.
high field Required Historical input price or volume series from market feed.
low field Required Historical input price or volume series from market feed.
close field Required Historical input price or volume series from market feed.

Mathematical Formulation

The mathematical definition of CDLDRAGONFLYDOJI (Dragonfly Doji) as evaluated within the Saral Engine execution pipeline:

Dragonfly Doji Recognition:Output={+100Bullish Dragonfly Doji Confirmed0No Pattern Detected−100Bearish Dragonfly Doji Confirmed\text{Dragonfly Doji Recognition}: \quad \text{Output} = \begin{cases} +100 & \text{Bullish Dragonfly Doji Confirmed} \\ 0 & \text{No Pattern Detected} \\ -100 & \text{Bearish Dragonfly Doji Confirmed} \end{cases}

Variable & Parameter Definitions

Evaluates consecutive bars checking candle body height, upper shadow length, lower shadow length, and preceding trend momentum according to classic Japanese charting principles.

Systematic Strategy Applications

Dragonfly Doji Pullback Entry Entry Signal
@CDLDRAGONFLYDOJI(open, high, low, close) == 100 and close > @SMA(close, 200)

Trigger long entry when a bullish Dragonfly Doji forms while the asset trades above its 200-day trend average.

Common Questions & Practical Considerations

What do outputs of +100 and -100 mean for CDLDRAGONFLYDOJI?

+100 indicates a confirmed bullish Dragonfly Doji, -100 indicates a bearish Dragonfly Doji, and 0 indicates no pattern was detected on that bar.

Should I trade Dragonfly Doji on its own without other filters?

No. Candlestick patterns in isolation have a high false-positive rate during choppy sideways markets. Always combine them with a trend filter (like a 50-day or 200-day moving average) or volume confirmation.

What is the best timeframe to trade candlestick patterns?

Daily bars are the most reliable. Intraday bars (1-minute or 5-minute) often produce false pattern signals due to random market microstructure noise.