Entered OHLC · recursive synthetic candles

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.

Runs in your browserSource seed disclosedNo candle signal

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.

Entered

One completed bar per line. Separate values with commas, semicolons or tabs. Maximum 500 rows.

Heiken-Ashi boundary: This page performs a deterministic candle transformation only. It does not classify candle color, trend, reversal, continuation, entry or exit.

Latest Heiken-Ashi arithmetic

Entered WPR, Standard Deviation and Heiken-Ashi 1.0.0.

Derived
No Heiken-Ashi candles calculated yetEnter one or more ordered source OHLC bars, or load the audited example.

How Heiken-Ashi candles are calculated

HA Open[i] = (HA Open[i − 1] + HA Close[i − 1]) ÷ 2
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

Reproduce it with “Load audited example”On the final fixture row, source OHLC is 122.3072, 123.8672, 120.6567 and 121.8667. The recursive synthetic open is 120.232257 and synthetic close is 122.174450; the synthetic high is 123.8672 and low is 120.232257, giving body 1.942193 and range 3.634943.

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

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.

XM

Review available instruments, chart history and account terms.

Check XM terms

FBS

Compare symbol specifications and chart-feed conventions for your region.

Check FBS terms

FXOpen

Confirm chart history and trading conditions for the entered symbol.

Check FXOpen terms

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.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.