Heiken-Ashi Candle Calculator
Transform ordered source OHLC bars into recursive Heiken-Ashi candles, with the source seed, synthetic open, close, high, low, body and range visible.
Enter ordered source OHLC bars
Use completed bars from one symbol, timeframe and broker feed. Row zero seeds the recursive transformation with its raw source OHLC.
One completed bar per line. Separate values with commas, semicolons or tabs. Maximum 500 rows.
Latest Heiken-Ashi arithmetic
Entered WPR, Standard Deviation and Heiken-Ashi 1.0.0.
| Label | Index | Source open | Source high | Source low | Source close | HA open | HA high | HA low | HA close | Body | Range | State |
|---|
How Heiken-Ashi candles are calculated
HA Close[i] = (Open[i] + High[i] + Low[i] + Close[i]) ÷ 4
HA High[i] = max(High[i], HA Open[i], HA Close[i])
HA Low[i] = min(Low[i], HA Open[i], HA Close[i])
Version 1.0.0 follows the MetaQuotes source seed: index zero passes through the first raw open, high, low and close. The recursive synthetic formula begins at index one.
Because synthetic open depends on the previous synthetic candle, changing the first row or shortening the entered history can change every later synthetic open.
Assumptions and limits
- At least one valid OHLC row is required; the first row is a source seed rather than a transformed candle.
- Every high must be at least the row open, low and close; every low must be at most them.
- Rows must use one symbol, timeframe, price convention and broker feed.
- The displayed body is signed close minus open; no bullish or bearish label is attached.
- Color, trend, reversal, continuation, direction and recommendation labels are withheld.
Worked example from the audited fixture
How to interpret the result
The synthetic open depends on the entire prior Heiken Ashi path, while high and low compare source extremes with the synthetic open and close. These transformed values are not executable market prices or a candle-direction recommendation.
Frequently asked questions
- Enter one or more ordered open-high-low-close bars from one symbol, timeframe and feed.
- It is the arithmetic average of the current source open, high, low and close.
- From index one onward it is the average of the preceding Heiken-Ashi open and close.
- The high is the maximum of source high, synthetic open and synthetic close; the low is the corresponding minimum.
- Version 1.0.0 passes through the first raw source open, high, low and close at index zero.
- Every synthetic open depends recursively on the preceding synthetic candle, so the visible starting row matters.
- It is signed synthetic close minus synthetic open, with no bullish or bearish classification attached.
- No. Color, trend, reversal, continuation, direction, confirmation, entry and exit interpretations are withheld.
Sources and methodology
- MetaQuotes Code Base — Heiken Ashi — Published raw-row seed and recursive synthetic OHLC transformation.
Continue candle and range analysis
Compare the chart feed and trading terms
Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

