# Heikin-Ashi

`heikin_ashi`

Smoothed candles that make trends easier to read.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| seed | choice | mt5_raw |  |

## Outputs

| Name | Kind |
| --- | --- |
| ha_open | value |
| ha_high | value |
| ha_low | value |
| ha_close | value |

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

Repaints: No.

## Formula

HA close = (open + high + low + close) / 4

HA open = (previous HA open + previous HA close) / 2

HA high = the highest of high, HA open and HA close, HA low the lowest of low, HA open and HA close

The first bar is seeded from the raw bar (mt5_raw) or from the textbook averages.
