# Marubozu

`marubozu`

A bar with almost no wicks, rising or falling.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| wick_pct | float | 5 | 0 to 50 |

## Outputs

| Name | Kind |
| --- | --- |
| marubozu | event |

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

Repaints: No.

## Formula

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

body > 0, upper wick <= wick_pct / 100 * range and lower wick <= wick_pct / 100 * range

Found: 1 on a rising bar, -1 on a falling bar

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.
