Shooting star

shooting_starpatternsForge API 1

A long upper wick after a rise.

Inputs

NameTypeDefaultRange
wick_multfloat20 to 10
opposite_pctfloat250 to 100
body_zone_pctfloat33.31 to 100
trend_barsint31 to 50

Outputs

NameTypeRequiredDescription
shooting_stareventOptionalcolor_down theme.down, color_up theme.up, shape diamond, style marker, where above_bar
Warm-up
trend_bars + 1 bars (4 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

upper wick >= wick_mult * body, lower wick <= opposite_pct / 100 * range, the body inside the bottom body_zone_pct of the range, and after a rise: close[i-1] > close[i-1-trend_bars]

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.