All posts
Heikin AshiCandlesticksTrend FollowingIndicatorBacktestUSD/JPY

Heikin Ashi Strategy: 960 Tests and a Price That Does Not Exist

The Heikin Ashi close is an average of four prices and not one of them. The same 6,107 trades came to −523 pips at the real close and +34,120 at the Heikin Ashi close.

Heikin Ashi does not draw a line next to the candles. It replaces the candles.

Two lines of arithmetic do the whole job: the close becomes the average of the bar's four prices, the open becomes the midpoint of the previous Heikin Ashi bar. The chart comes out visibly smoother.

Twenty-one indicators into this series, it is the first thing measured that rewrites the bars themselves — and doing that raises a problem none of the other twenty had. The Heikin Ashi close is a price nobody traded at.

The same 6,107 trades, priced at the real close and then at the Heikin Ashi close. Nothing else changed.

0+10k+20k+30ktrades accumulated through 2025 (pips)
priced at the real close (−523 pips)priced at the Heikin Ashi close (+34,120 pips)USD/JPY 2025, 15-minute, colour flip, 6,107 trades, zero spread
One set of trades, two prices. Nothing about the strategy differs between these lines — only which close the fills are written down at. The Heikin Ashi close is an average of four prices and is not one of them.

What Heikin Ashi calculates

Two lines per bar:

  • Heikin Ashi close = (open + high + low + close) ÷ 4
  • Heikin Ashi open = (previous Heikin Ashi open + previous Heikin Ashi close) ÷ 2

The high and low take the outer of those two against the bar's real high and low.

Three properties follow, and no other indicator in this series has them.

The Heikin Ashi close is not a price

An average of four prices is not any of the four. There is no moment inside the bar when the market was at that number.

How far away it sits:

TimeframeDistance from the real close (median)MeanTop 10%Max
15-minute2.22 pips3.09 pips6.70 pips78.5 pips
1-hour4.55 pips6.22 pips13.46 pips113.2 pips
4-hour9.26 pips12.58 pips27.34 pips147.6 pips

USD/JPY, 2025. And the error has a direction. Of the green Heikin Ashi bars, the ones whose Heikin Ashi close sits below the real close are 63.7% to 67.3% across three timeframes and two years. When the signal says buy, the recorded price is on the cheap side.

Heikin Ashi never forgets its own start date

The Heikin Ashi open comes from the bar before it, which came from the bar before that. There is no period setting because it uses every bar there is.

The past never drops out — but it halves every bar. Recomputing the same bars from a start date 500 bars later:

TimeframeGap at the startBars to agree within 1 pip0.1 pip0.01 pip0.001 pip
15-minute4.76 pips36913
1-hour7.06 pips371013
4-hour7.30 pips371013

The ratio between one bar's gap and the next was 0.5 exactly, on all 16 to 17 bars where it was large enough to measure. Subtract the two recursions and only the halved difference survives, so this is arithmetic rather than a finding.

It has two practical consequences. Changing the start date changes the values — though thirteen bars close the gap to three decimal places, so it rarely shows. And there is no answer to "how much history does it need": fifty bars is plenty in practice, but no number makes the seed exactly zero.

The Heikin Ashi colour is a moving average crossover

This is the sharpest result in the article.

The Heikin Ashi open is the midpoint of the previous open and close, which makes it an exponential moving average of the Heikin Ashi close with a smoothing factor of 0.5. A factor of 0.5 is a 3-period EMA.

So "the bar is green" means "(O+H+L+C)/4 is above its own 3-period EMA as of the previous bar" — nothing more.

Measured across three timeframes and two years: zero colour disagreements and zero disagreements about which bar the colour changed on. (The open itself differs by at most 0.08 to 0.48 pips, which is the seed still decaying.)

A Heikin Ashi candle is a price/average cross drawn in the shape of a candle. The last section of this article measures what that costs.

How to add Heikin Ashi to a chart

PlatformSteps
MT4 / MT5Heiken Ashi ships with the platform. Navigator → Indicators → Heiken Ashi, dragged onto the chart
TradingViewPick Heikin Ashi from the chart-type menu at the top of the chart
Browser (Formiq)Available as a chart type. The backtest exposes four readings (colour flip, N-bar run, wickless bar, doji) and four calculation variants

TradingView is where the care is needed. Leaving the chart type set to Heikin Ashi while a strategy runs prices the fills at Heikin Ashi values too. That gap is exactly what this article measures.

MT4 works the other way: Heiken Ashi only draws, so Close[] stays the real close. But MT4 has no built-in function returning the series, so exporting a rule to an EA means writing a loop that rebuilds the bars.

How Heikin Ashi was tested

ItemValue
PairUSD/JPY
Window2025-01-01 to 2025-12-31 (2024 run identically for comparison)
Timeframes15-minute / 1-hour / 4-hour
ReadingsColour flip / N bars of one colour (1–5) / wickless bar / doji (body ratio 0.05, 0.1, 0.2)
VariantsStandard / better (2-bar average) / smoothed (3, 5, 10) / double smoothed (3, 5, 10)
Combinations80 per cell. 3 timeframes × 4 windows = 960 in total
ExitOpposite signal. All four readings are symmetric, so entry and exit share a rule set
FillsThe real candle's close. Heikin Ashi decides only when to trade
Stops and targetsOff (measured separately below)
Spread0.3 pips fixed
Size0.1 lots

Filling at the real candles is the premise of this test. The transform decides when; the market decides at what. The next section measures what happens when that premise is dropped.

The same trades, priced two ways

The strategy does not change at all. Only which close the fill is written down at. The spread is zero on both sides so nothing but the price differs.

The figure at the top of this article is the result: grey is the real close, red is the Heikin Ashi close, and both lines are the same 6,107 trades.

ReadingTimeframeYearReal closeHeikin Ashi closeDifference
Colour flip15-minute2025−523.1+34,120.0+34,643.1
Colour flip15-minute2024−376.0+34,013.3+34,389.3
Colour flip1-hour2025+1,617.7+18,228.6+16,611.0
Colour flip4-hour2025+910.7+10,203.5+9,292.8
Run of 31-hour2025+1,276.5+3,875.8+2,599.3
Wickless bar1-hour2025+1,123.1+6,708.6+5,585.6
Doji (0.1)15-minute2025−2,450.0+2,996.1+5,446.1

Across 36 cells — six readings × three timeframes × two years — the Heikin Ashi price was kinder in 35. In 15 of them it turned a loss into a profit.

Where the difference comes from

The mechanism is plain. Every trade fills twice, and each fill collects the gap between the Heikin Ashi close and the real one. As the previous section showed, that gap leans cheap for buys and dear for sells.

TimeframeYearMean gap× 2Measured lift per tradeRatio
15-minute20253.096.185.670.917
1-hour20256.2212.4410.730.863
4-hour202512.5825.1724.330.967
4-hour202412.0524.1023.580.978

The lift per trade runs at about twice the average gap — 0.86 to 0.98 times it, measured. Twenty articles in this series have confirmed that cost = trades × spread; this is the same law with the sign reversed. Trades × roughly twice the gap is the profit that was invented.

Which is why the 15-minute colour flip is the most spectacular of them: 6,107 trades a year, 5.67 pips of fiction each.

The smoothing is real

Heikin Ashi is sold on cutting noise and holding a trend. Measured, that part is true.

0%10%20%30%40%50%12345678+bars one colour lasted
Heikin Ashi (1,548 runs)ordinary candles (3,185 runs)USD/JPY 2025, hourly bars
How many bars one colour lasts before it changes. Half of all ordinary candle runs end after a single bar; a quarter of Heikin Ashi runs do. The smoothing is real — the mean run roughly doubles, from 1.95 bars to 4.02.
TimeframeYearHeikin Ashi mean runOrdinary candlesColour changes (HA / ordinary)
15-minute20254.081.986,107 / 12,576
1-hour20254.021.951,548 / 3,185
4-hour20254.202.00383 / 806

The mean run roughly doubles and the colour changes roughly halve, on all six cells. Runs that end after a single bar fall from 49.2–50.7% to 20.8–24.3%.

The smoothing being real and the smoothing being profitable are separate questions. The rest of the article is the second one.

The wickless bar happens on half the bars

A green Heikin Ashi bar with no lower wick is supposed to mark a strong trend. Count it first:

TimeframeShare of bars with no wick
15-minute46.9–47.3%
1-hour46.2–46.8%
4-hour47.7–49.4%

Roughly every second bar. A condition that holds half the year separates nothing. It is the second time this series has found one — GMMA's "long ribbon in order" held on 85% of bars.

The doji is rarer: a body under 10% of the range occurred on 10.5–12.5% of bars.

The four readings, backtested

From here on, fills come from the real candles. Standard variant throughout.

TimeframeYearColour flipRun of 3WicklessDoji (0.1)
15-minute2025−2,355.2−1,602.5−535.2−2,905.4
15-minute2024−2,200.9−1,308.4−1,260.5−3,417.0
1-hour2025+1,153.3+1,094.1+912.8+788.6
1-hour2024+101.3+2,194.2+3,895.2−1,548.6
4-hour2025+796.1−834.3−566.5−1,244.3
4-hour2024+3,051.6−302.1+2,972.9+682.9

Trade counts on hourly bars in 2025: 1,548 for the flip, 608 for the run of 3, 701 for the wickless bar, 434 for the doji.

All twelve 15-minute cells lost. No reading rescues it. The colour flip trades 6,107 times a year there, so 0.3 pips of spread alone is 1,832 pips — on a system that loses 523.1 pips at zero spread.

Only the doji shows a high win rate (52.76% on hourly bars in 2025, against 35–37% for the rest). That is the twenty-first consecutive article with the same shape: the reversal reading wins more often and finishes behind.

What survived both years

Reading15-minute1-hour4-hour
Colour flip1/87/85/8
N-bar run11/4032/407/40
Wickless3/83/80/8
Doji1/248/2411/24
All 8016/8050/8023/80

2025 medians: −509.3 pips on 15-minute, +850.7 on hourly, +5.3 on 4-hour.

Hourly bars are the only place Heikin Ashi worked honestly — 63 of 80 settings ahead in 2025 and 50 of 80 ahead in both years. Few indicators in this series have produced a timeframe that held together this well.

The run-length ladder

Waiting for N same-coloured bars, N from 1 to 5. A run of 1 is the colour flip, so the ladder lands on something already measured (the sweep asserts the two are identical).

TimeframeYear12345
15-minute2025−2,355.2−1,090.9−1,602.5−401.9+85.7
15-minute2024−2,200.9−1,729.8−1,308.4−774.6−1,851.0
1-hour2025+1,153.3+2,415.4+1,094.1+1,375.8+442.4
1-hour2024+101.3+2,545.3+2,194.2+2,227.4+3,392.5
4-hour2025+796.1+1,478.1−834.3−993.7−496.5
4-hour2024+3,051.6+1,379.9−302.1−1,328.7−1,227.3

It is not monotonic. On hourly bars, waiting raises the win rate (38.5% to 42.5%) and cuts the trades (824 to 336) without moving net pips much. Only the both-years count comes out cleanly there: 7/8 at a run of 1, 8/8 at a run of 5.

4-hour bars go the other way — waiting three bars or more drops to 0/8. Whether patience pays is a property of the timeframe, not of the reading.

The four calculation variants

Standard, better (average two bars, then transform), smoothed and double smoothed. What changes first:

VariantColour changes (hourly, 2025)Mean runBars whose colour differs from standard
Standard1,5484.020%
Better1,2325.0512.3%
Smoothed (5)7188.6727.9%
Double smoothed (5)55711.1839.4%

More smoothing means longer runs and a different indicator. The double-smoothed series is a different colour on four bars in ten.

Results (mean of the flip and the run readings, hourly):

Variant20252024
Standard+1,272+1,760
Better+1,127+2,021
Smoothed (3)+1,543+2,506
Smoothed (10)+267+3,200
Double smoothed (10)+282+1,406

Smoothed (3) was the only variant in the top group in both years. Smoothed (10) made +267 in 2025 and +3,200 in 2024. On 15-minute bars only double smoothed (10) cleared both years (+1,706 / +1,697), and it does that by cutting the trades to 1,198.

Out of sample: last year's best, applied to this year

TimeframeBest of 2024Applied to 2025
15-minuteWickless / smoothed (5) — +2,921.9−2,445.0 (78/80, median −509.3)
1-hourRun of 2 / smoothed (10) — +4,030.9−209.5 (71/80, median +850.7)
4-hourDoji (0.2) / smoothed (5) — +4,237.9+437.8 (28/80, median +5.3)

Two of three landed in the bottom fifth. Only the 4-hour pick beat its median. Hourly bars have 50 of 80 settings ahead in both years, and picking last year's best out of that pool still drew 71st of 80 — the same result twenty previous articles have found.

Rank correlations across all 80:

Timeframe2024 vs 2025H1 2025 vs H2 2025
15-minute+0.533+0.128
1-hour+0.045−0.022
4-hour+0.166−0.150

Only 15-minute bars show a positive correlation, and 51 of its 80 settings lost money in 2025 — so what is stable there is the ordering of the losses.

Does it have to be Heikin Ashi?

The colour turned out to be (O+H+L+C)/4 against its own 3-period EMA. So the question is what the transform adds over running that same cross on ordinary candles.

The control is an EMA(1)/EMA(3) crossover on the close: same shape, no transform. Compared across 48 cells of three timeframes, two years and eight variants.

−4k−4k−2k−2k00+2k+2k+4k+4kEMA 1/3 cross on ordinary candles (pips)Heikin Ashi colour flip (pips)
M15H1H4above the line = the transform won (31 of 48)
The Heikin Ashi colour is (O+H+L+C)/4 against its own 3-period EMA, so the colour flip is a price/average cross. Plotted against that cross run on ordinary candles: the transform traded fewer times in 48 of 48 and won a higher share in 46, and finished ahead on net pips in 31.
Heikin Ashi colour flipEMA 1/3 cross on the close
Trades (hourly, 2025, standard)1,5482,082
Win rate35.66%32.37%
Net pips+1,153.3+476.0

Over all 48:

  • Fewer trades in 48 of 48
  • Higher win rate in 46 of 48
  • More net pips in 31 of 48

The transform is reliable on trade count and win rate, and better than a coin flip on net pips. This is the third time this series has run that comparison — CCI's typical price came out at 25 of 36, the psychological line's bar counting at 16 of 36 — and 31 of 48 is the best of the three.

The split by timeframe matters, though. 15-minute bars favour the transform in 16 of 16 cells and hourly bars in 13 of 16; 4-hour bars in only 2 of 16. At 4 hours there was no reason to use it.

The 15-minute clean sweep means "lost less", not "won": the EMA 1/3 control made −4,981.6 pips there in 2025 against the colour flip's −2,355.2. Both lose.

Filters, stops and cost

The ADX filter broke it again

SettingBaselineADX≥20ADX≥25ADX≥30
Colour flip, hourly, 2025+1,153.3 (1,548)+838.2 (1,001)+422.0 (705)+89.4 (468)
Colour flip, hourly, 2024+101.3 (1,525)−1,437.0 (976)−1,043.0 (671)−1,213.9 (449)

Monotonically worse in 2025, straight into the red in 2024. Adding a trend-strength filter to a trend rule is now the fourth failure of its kind here, after GMMA, CCI and the psychological line.

Session

Tokyo hours (UTC 0–8) pointed opposite ways in the two years: the hourly colour flip fell from +1,153.3 to +646.5 in 2025 and rose from +101.3 to +1,558.7 in 2024. London and New York hours hurt in both (+1,153.3 → +257.4, +101.3 → −700.2).

Stops and targets

A 100-pip stop with a 200-pip target left the hourly colour flip at +1,047.2 in 2025 (baseline +1,153.3) and +15.3 in 2024 (baseline +101.3). Nothing here counts as an improvement. A 30-pip stop with a 60-pip target dropped 2025 to −249.6.

Cost

Net pips were exactly linear in the spread — pips lost = trades × spread held without error on all five settings.

SettingTradesSpread 00.31.0Break-even
Colour flip, 15-minute6,107−523.1−2,355.2−6,630.1never
Colour flip, 1-hour1,548+1,617.7+1,153.3+69.71.05 pips
Run of 3, 1-hour608+1,276.5+1,094.1+668.52.10 pips
Doji (0.1), 1-hour434+918.8+788.6+484.82.12 pips

The readings that trade less break even later. The 15-minute colour flip loses at zero spread, so cost is not its problem.

What this test supports

  1. The Heikin Ashi close is not a fill price. It sits a median 2.22 to 9.26 pips from the real close and, on green bars, lands on the cheap side 63.7% to 67.3% of the time. Pricing the same 6,107 trades both ways gives −523.1 and +34,120 pips. Across 36 cells the Heikin Ashi price was kinder in 35, and turned a loss into a profit in 15
  2. The invented profit is roughly twice the gap, times the trade count. Once at each end of every trade — measured at 0.86 to 0.98 times that
  3. The smoothing is real. One colour lasts 1.95 bars on ordinary candles and 4.02 on Heikin Ashi, and colour changes halve. All six cells agree
  4. The colour is a moving average crossover. (O+H+L+C)/4 against its own 3-period EMA, with zero disagreements across six cells. Run on ordinary candles, the transform cuts trades in 48 of 48 and lifts the win rate in 46, and finishes ahead on net pips in 31
  5. With honest fills, only hourly bars worked. 50 of 80 settings ahead in both years, against 16 on 15-minute and 23 on 4-hour

Limits of this test

  • One pair, two years. The gap between the Heikin Ashi close and the real one scales with how far price moves, so a different instrument changes the size of the invented profit too
  • 2024 rose 1,632 pips and 2025 fell 56 — completely different market characters. Hourly bars surviving both is two years, one of each
  • The fill experiment ran at zero spread. A real account pays spread on either calculation, but the gap between them is unchanged
  • The spread is fixed at 0.3 pips. The hourly colour flip breaks even at 1.05, so that assumption is doing real work
  • Exits are on the opposite signal. No stop-and-target combination improved anything by a margin worth reporting
  • The MT4 export covers the standard variant only. The three smoothed variants need a rolling average of each component, so the export falls back to standard and says so in the emitted code
  • The doji ratio and the run length were swept over three and five values. 960 combinations comes mostly from the eight variants, so the resolution within any one reading is coarse

Questions people ask

Why do Heikin Ashi backtests look so good?
Because the Heikin Ashi close is not a price anything traded at. It is (open + high + low + close) / 4, an average of four prices and none of them. On USD/JPY hourly bars it sits a median 4.55 pips away from the real close, and when the bar is green it is below the real close 63.7% to 67.3% of the time — so a buy is recorded cheaper than the market. Pricing the same 6,107 trades both ways gave −523.1 pips at the real close and +34,120 at the Heikin Ashi close. Not one character of the strategy differs between those two numbers.
Does Heikin Ashi actually reduce noise?
Yes. On USD/JPY hourly bars in 2025, one colour lasted a mean of 1.95 bars on ordinary candles and 4.02 on Heikin Ashi. The share of runs that end after a single bar falls from 50.4% to 23.8%, and the number of colour changes halves from 3,185 a year to 1,548. All six cells of three timeframes and two years point the same way.
What is the best timeframe for a Heikin Ashi strategy?
Hourly, by a wide margin. Filling at the real candles, 63 of 80 settings finished 2025 ahead on hourly bars and 50 of 80 were ahead in both years. On 15-minute bars only 29 of 80 were ahead in 2025 and 16 of 80 in both, with a median of −509.3 pips: the colour flip trades 6,107 times a year there, so a 0.3-pip spread alone costs 1,832 pips. The calculation variant and the run length mattered far less than the timeframe.
Should you buy when the Heikin Ashi candle turns green?
It was the most straightforward reading, but only on hourly bars. The standard variant's colour flip made +1,153.3 pips in 2025 over 1,548 trades and +101.3 in 2024 over 1,525. On 15-minute bars it lost in both years; on 4-hour bars it made +796.1 and +3,051.6. Waiting for a run of N same-coloured bars does not improve it monotonically — the hourly mean goes from +1,229 pips at a run of 1 to +832 at a run of 5.
Is Heikin Ashi available in MT4 and TradingView?
Both. MT4 and MT5 ship a Heiken Ashi custom indicator you drag on from the Navigator, and TradingView offers it in the chart-type menu. The catch is on TradingView: leaving the chart type set to Heikin Ashi while running a strategy prices the fills at Heikin Ashi values too, which is exactly the gap this article measures. Formiq charts it as a chart type and exposes four readings as backtest conditions.

Formiq is a free browser-based FX terminal with replay practice and no-code backtesting. Open the chart or see what the free plan includes.