# Outside bar

`outside_bar`

A bar whose range covers the previous bar's range.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| allow_equal | bool | true |  |

## Outputs

| Name | Kind |
| --- | --- |
| outside_bar | event |

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

Repaints: No.

## Formula

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

high >= the previous high and low <= the previous low (strictly with equal values off), not both equal; both bars have a 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.
