# Dragonfly doji

`dragonfly_doji`

A doji that opens and closes near its high.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| body_pct | float | 5 | 0 to 50 |
| wick_pct | float | 10 | 0 to 50 |

## Outputs

| Name | Kind |
| --- | --- |
| dragonfly_doji | event |

Warm-up: 0 bars (0 at the defaults).

Repaints: No.

## Formula

body = |close - open|, range = high - low, upper wick = high - max(open, close), lower wick = min(open, close) - low

a doji, and upper wick <= wick_pct / 100 * range

Found: 1

A bar whose high equals its low, or that has a missing price, is never part of a pattern. Computed on the prices the bars are drawn with: on Heikin-Ashi or Renko bars those are the built candles.
