# Evening doji star

`evening_doji_star`

An evening star whose middle bar is a doji.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| long_body_pct | float | 50 | 0 to 100 |
| body_pct | float | 5 | 0 to 50 |
| penetration | float | 0.3 | 0 to 1 |

## Outputs

| Name | Kind |
| --- | --- |
| evening_doji_star | event |

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

Repaints: No.

## Formula

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

as an evening star, with the middle bar a doji: its body <= body_pct / 100 * its own range. The star may open at the first close: no gap is required.

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.
