Three inside
A harami confirmed by the third bar.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| long_body_pct | float | 50 | 0 to 100 |
| allow_equal | bool | true |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| three_inside | event | Optional | color_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
up: the first two bars are a harami after a fall and the third closes above the first open
down: the first two bars are a harami after a rise and the third closes below the first open
Found: 1 up, -1 down
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.