Heikin-Ashi

heikin_ashitrendForge API 1

Smoothed candles that make trends easier to read.

Inputs

NameTypeDefault
seedchoicemt5_raw

Outputs

NameTypeRequiredDescription
ha_openvalueOptionalcolor theme.accent, style line, width 1
ha_highvalueOptionalcolor theme.accent, style line, width 1
ha_lowvalueOptionalcolor theme.accent, style line, width 1
ha_closevalueOptionalcolor 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.