Evening doji star

evening_doji_starpatternsForge API 1

An evening star whose middle bar is a doji.

Inputs

NameTypeDefaultRange
long_body_pctfloat500 to 100
body_pctfloat50 to 50
penetrationfloat0.30 to 1

Outputs

NameTypeRequiredDescription
evening_doji_stareventOptionalcolor_down theme.down, color_up theme.up, shape diamond, style marker, where above_bar
Warm-up
2 bars (2 at the defaults)
Repaints
No
Parity
None

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.