# Three white soldiers

`three_white_soldiers`

Three rising bars, each opening inside the last body.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| wick_pct | float | 20 | 0 to 100 |

## Outputs

| Name | Kind |
| --- | --- |
| three_white_soldiers | 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

three rising bars with each close above the one before; each of the second and third opens within the body of the bar before; each upper wick <= wick_pct / 100 * its bar's 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.
