BLACK FRIDAY 30% OFF
BLACK FRIDAY SALE 30% OFF MASTERCLASSES USE CODE BLACKFRIDAY SALE STARTS IN 02d 13h 21m 02s
Skip to main content

Why Heikin Ashi Backtests Can Be Unrealistic: Synthetic Candles and TradingView Standard OHLC

Heikin Ashi candles are computed averages rather than a record of the exact prices at which the market traded. When a strategy simulator fills orders at synthetic Heikin Ashi Open, High, Low or Close levels, it may generate unrealistically favourable or even unavailable executions. TradingView expressly warns that strategies on non-standard charts such as Heikin Ashi or Renko can produce results that do not represent tradable market conditions.

TradingView has an important exception for Heikin Ashi charts: the Using standard OHLC strategy property can make simulated order fills use real standard bar prices while the Heikin Ashi representation remains available for signal calculations. See its official warning and strategy settings documentation. This guide focuses on how retail traders can audit that difference rather than treating all alternative chart styles as defective.

What the numbers and settings show
ItemValueInterpretation
Standard barO 100, H 110, L 98, C 105Actual underlying OHLC observations
Heikin Ashi Close103.25Computed arithmetic average
Example synthetic fill$175.60Not a guaranteed market trade
Standard OHLC fill$174.20Different emulator result

Hypothetical illustrations where numerical inputs are used. Conditions and platform settings must be checked against the actual account.

The four Heikin Ashi candle calculations are synthetic

Under standard Heikin Ashi construction, Close equals the mean of actual Open, High, Low and Close of the underlying time bar. Heikin Ashi Open is typically the average of the previous Heikin Ashi Open and Close. Its High is the maximum of the original High, Heikin Ashi Open and Heikin Ashi Close; its Low is the minimum of the original Low and those two calculated values. Therefore some values are necessarily transformations, not market transactions.

For example, a standard bar may have O 100, H 110, L 98, C 105; its Heikin Ashi Close is (100 + 110 + 98 + 105) / 4 = 103.25. The market need not have offered 103.25 as an executable price when the backtester decides to enter or exit. A candle’s colour or smooth trend does not establish fill availability.

Worked example: strategy equity changes with fill mode

Suppose a fictional strategy indicates a buy signal on a Heikin Ashi bar and the strategy emulator records a synthetic fill of $175.60, while the underlying standard bar’s actual eligible simulated fill is $174.20 under a different emulator setting. The difference is $1.40 per share; on an illustrative 100-share position it changes gross entry consideration by $140. That is substantial for a strategy trading narrow swings.

TradingView’s own published example demonstrates this phenomenon with a Heikin Ashi synthetic fill around $175.61 versus a standard OHLC fill around $174.20. Do not present either number as a guaranteed live price; both remain broker-emulator outputs, and genuine execution also depends on Bid/Ask spreads, order latency, actual liquidity and costs.

Using standard OHLC fixes a price source, not all execution problems

On a supported Heikin Ashi TradingView strategy, open the Strategy Tester properties and enable Using standard OHLC to force execution simulation using the ordinary bar prices. That avoids one class of synthetic-price filling. It does not magically give an order executed at the exact open or close, and it cannot reconstruct missing order-book depth or spread variations within a bar.

The setting does not generalise to Renko and other non-standard chart types that have their own time/event construction. TradingView states that the property has no effect on those types. Bar Magnifier, lower-timeframe data and commission settings address different simulation limits and may also affect the reported result.

Why a strategy can repaint with Heikin Ashi or real-time bars

Like other indicators, the developing Heikin Ashi candle can change before its underlying time bar closes. A signal calculated on an unconfirmed bar can vanish at the close. In Pine Script, strategies can also recalculate on every tick if configured to do so, generating events that are not reconstructable from a historical chart with only completed bars.

Separate signal stability (did the entry rule remain true at close?) from fill realism (was the execution price available?). Enabling standard OHLC addresses fill prices but not necessarily all signal repainting from higher-timeframe requests or live-bar updates. Our TradingView alert diagnostics explains that distinction in the notification context.

Compare strategies on three price representations

A rigorous study can keep strategy conditions fixed and compare a standard candlestick chart, Heikin Ashi signals with standard OHLC fills, and default synthetic Heikin Ashi fills. The third may look dramatically better because it is using non-executable values. A difference in simulated results is evidence that chart choice matters; it does not prove the underlying strategy has genuine edge or that real candles are a superior prediction tool.

Include identical market dates, fees, slippage assumptions, order timing, permitted leverage and contract sizes. If one test receives different historical bars or uses different signal confirmation rules, do not attribute the full performance difference to the fill mode alone.

A practical backtest quality checklist

  1. Document the chart type, underlying ticker and data provider.
  2. Record the exact signal formula and which bar’s close confirms it.
  3. Identify whether strategy orders fill at synthetic chart values or standard OHLC.
  4. Enable the TradingView standard OHLC property for applicable Heikin Ashi strategy research.
  5. Add realistic commissions, spread and execution/slippage scenarios rather than zero-cost assumptions.
  6. Check whether Bar Magnifier or lower timeframe data affect order sequencing and fills.
  7. Run unseen historical data and paper-trading comparisons, preserving settings and code version.

For a separate MetaTrader framework see MT5 real-tick strategy testing; the data engine and simulator are different from TradingView’s broker emulator.

When a smooth-looking chart is still useful

Heikin Ashi can be useful for displaying smoothed directional trends and reducing visual noise, but it should not be used as a literal list of exchange transactions. A trader can describe a signal based on a synthetic candle as long as the later executable prices are evaluated using the real underlying quote and order conditions. Aesthetic chart smoothness is not a performance measure.

For risk management, evaluate stop distance using real Bid/Ask or exchange prices for the actual contract, not an averaged Heikin Ashi wick when that wick did not correspond to a tradable value. Keep both signal-price and execution-price fields in the trading journal to prevent accidental mixing.

A second arithmetic test: the Heikin Ashi Close is not the Last trade

Take an illustrative underlying time bar with Open 100, High 108, Low 96 and Close 102. The Heikin Ashi Close under the ordinary formula is (100 + 108 + 96 + 102) / 4 = 101.50. Even if the stock’s last transaction at the end of the bar was $102, an indicator that references Heikin Ashi Close is evaluating $101.50. If the signal threshold is $101.75, the ordinary closing price would be above the threshold while the Heikin Ashi Close would be below it.

These rules can be useful for smoothing signals, but a market buy at the end of that bar cannot be presumed to fill at $101.50. If one contract represents 100 shares, the difference between $101.50 and $102 is $50 in gross notional execution value. The correct quote side and actual order time still matter; neither chart close is a promise of executable liquidity.

A control table for a defensible strategy comparison

VersionSignal sourceSimulated fill source
A: standard candlesReal time-bar OHLCStandard OHLC simulator
B: Heikin Ashi + standard OHLCSynthetic Heikin Ashi OHLCUnderlying standard OHLC
C: Heikin Ashi default fillsSynthetic Heikin Ashi OHLCPotentially synthetic Heikin Ashi levels

If B and C have the same signals but different trade profits, part of the difference can be traced to fill-price treatment. If A and B differ, the signals themselves may be the source. That controlled comparison is more informative than cherry-picking the single smoothest equity curve. Re-run the study with real Bid/Ask cost assumptions and an unseen evaluation period before drawing any conclusion about tradeable performance.

Continue your learning with technical analysis foundations and learning pathways and Heikin Ashi candle calculations.

Frequently asked questions

Are Heikin Ashi prices real exchange transaction prices?

Heikin Ashi OHLC values are calculated transforms; they need not match executable quotes.

Can TradingView backtest Heikin Ashi with standard candles for fills?

Yes, its strategy properties provide Using standard OHLC for Heikin Ashi strategies.

Does standard OHLC mode guarantee realistic fills?

No. Fees, market impact, spread, order queue and bar sequencing still matter.

Does the setting work with Renko charts?

TradingView says standard OHLC fill mode does not apply to other non-standard time-chart types.

Should I delete all Heikin Ashi indicators?

No. They can remain useful for visual signals if execution is separately tested on realistic market prices.

Official documentation and further reading

Important notice: This article is general trading education, not financial advice or a trade signal. Example prices and account values are fictional. Trading platforms, fills and risk management involve operational and market uncertainties.


Stay Ahead of the Markets

Get market analysis, financial news and practical trading insights delivered straight to your inbox.