Heikin-Ashi
Smoothed candles that make trends easier to read.
Inputs
| Name | Type | Default |
|---|---|---|
| seed | choice | mt5_raw |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| ha_open | value | Optional | color theme.accent, style line, width 1 |
| ha_high | value | Optional | color theme.accent, style line, width 1 |
| ha_low | value | Optional | color theme.accent, style line, width 1 |
| ha_close | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- 0 bars (0 at the defaults)
- Repaints
- No
- Parity
- MetaTrader 5, within 1e-12
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.