Register
Strategy guide

Trade Trends with Heikin Ashi Candles

A Heikin Ashi strategy uses averaged candles to make trends easier to see and follow. Heikin Ashi, Japanese for "average bar", recalculates each candle from the current and previous prices. In a strong trend the candles run in one colour with few wicks against the move, which helps traders stay in a trend and spot when it weakens.

QuantPower Research · Updated 14 Nov 2026 · 17 min read

The averaging that makes Heikin Ashi charts calm also makes them easy to misuse. Their prices are not prices anyone traded, so a strategy has to read signals from Heikin Ashi candles and place orders at real prices. This guide explains how Heikin Ashi candles are calculated, how to read them, rules you can test, worked examples on Nifty, what the trades cost, the backtesting mistake to avoid, and how to build the strategy in QuantPower, where Heikin Ashi is one of the 19 chart types.

At a glance

Heikin Ashi trend strategy
TypeTrend following
ChartHeikin Ashi candles, with a trend filter
MarketsNifty and Bank Nifty futures, stock futures, MCX futures
Timeframes15-minute to daily
Long entryTwo green candles with no lower wick after a red run, price above the 50-period average
ExitThe first red candle, or a trailing stop
StopBelow the real low of the signal candles

A short history of Heikin Ashi

Candlestick charts come from Japan, where rice traders in the eighteenth century drew each period as a body and wicks. Heikin Ashi is a later Japanese variation that averages each candle with the one before it, so that the colour of the candles changes only when the trend does. It was little known outside Japan until the early 2000s.

Dan Valcu introduced it to many Western traders in a 2004 article in *Technical Analysis of Stocks & Commodities*, "Using the Heikin-Ashi Technique", which set out the formulas and the main reading rules: long runs of one colour, the absence of wicks against the trend, and small bodies as a sign of indecision.1 Charting software added Heikin Ashi as a chart type soon after, and it has since become a common choice for traders who want to stay in trends without reacting to every candle, in the tradition of trend following described in textbooks such as John Murphy's.2

In India, Heikin Ashi charts are popular with intraday traders of Nifty and Bank Nifty futures and options, mostly on the 5-minute to 1-hour charts, and with swing traders on daily charts of stocks. Their appeal is practical: a trader who struggles to hold a winning trade through every red candle on a normal chart often finds it easier to hold while the Heikin Ashi candles stay green.

How Heikin Ashi candles are calculated

Formula
HA close = (open + high + low + close) ÷ 4
HA open = (previous HA open + previous HA close) ÷ 2
HA high = the highest of the high, HA open and HA close
HA low = the lowest of the low, HA open and HA close
Example
The previous Heikin Ashi candle opened at 24,980 and closed at 25,010. The current 15-minute Nifty candle has an open of 25,015, a high of 25,060, a low of 25,005 and a close of 25,050.
HA close = (25,015 + 25,060 + 25,005 + 25,050) ÷ 4 = 25,032.50
HA open = (24,980 + 25,010) ÷ 2 = 24,995
HA high = 25,060 and HA low = 24,995
The candle is green, and its low equals its open, so it has no lower wick: a sign of a strong upward move.

Because each candle blends in the previous one, Heikin Ashi charts react more slowly than ordinary candlestick patterns and show far fewer colour changes.

What the averaging does

The HA close is the average price of the current candle. The HA open is a running average of past HA candles: each new open is halfway between the previous open and the previous close. That is the same as an exponential average with a weight of one half, which is why the HA open lags the price and why a single strong candle does not flip the colour on its own. The HA high and low keep the real extremes, so a long wick on a Heikin Ashi candle means the real price did travel that far.

How to read Heikin Ashi candles

What you seeUsual reading
Green candles with no lower wicksA strong uptrend
Red candles with no upper wicksA strong downtrend
Small bodies with wicks on both sidesIndecision; the trend may be ending
A change of colour after a long runA possible reversal or pause
Bodies shrinking over several candlesThe trend is slowing

Heikin Ashi beside a normal candlestick chart

The same 15-minute session looks very different in the two charts. On a normal chart, an uptrend shows red candles on most pullbacks, sometimes several in a row. On a Heikin Ashi chart, small pullbacks often stay green, because the averaging absorbs them, and only a deeper pullback turns the candles red. That is the strength and the weakness: fewer false alarms, and later signals when the trend really turns.

The rules

Long trades

  1. Trend filter: the real price is above its 50-period exponential moving average.
  2. Setup: at least three red Heikin Ashi candles, a pullback in the trend.
  3. Signal: two green Heikin Ashi candles in a row, the second with no lower wick.
  4. Entry: at the real market price after the second green candle closes.
  5. Stop: below the real low of the two signal candles.
  6. Exit: at the close of the first red Heikin Ashi candle, or on a trailing stop.

Short trades

The mirror image: price below the 50-period average, a run of green candles, then two red candles with no upper wick.

Why each rule is there

  • The trend filter keeps the strategy trading with the larger move, where Heikin Ashi runs last longest.
  • The red run makes sure there was a pullback to buy, not just a pause.
  • Two green candles, the second without a lower wick, wait for the averaged trend to turn and for buyers to hold the price above the HA open for a whole candle.
  • The real-low stop is a price the market actually traded, so it can be placed as a real order.
  • The colour exit lets a trend run while the candles stay green and closes the trade when they change.

A worked example

Heikin Ashi rules: three red candles, then two green with no lower wick on the second; buy 25,050, stop 24,985, exit on the first red candle (illustration)

Nifty futures on a 15-minute chart are above their 50-period average. After three red Heikin Ashi candles in a pullback, two green ones follow, the second with no lower wick. The real price at the close of the second is 25,050, and the real low of the two candles is 24,990.

  • Entry: 25,050
  • Stop: 24,985, a risk of 65 points, ₹4,225 per lot of 65
  • Exit: the first red Heikin Ashi candle

The exit has no fixed target. The rule lets a trend run and gives back part of the move when it ends. These numbers illustrate the rules, not a result.3

How the trade might end

Suppose the green run lasts seven more candles and Nifty futures reach 25,240 before the first red Heikin Ashi candle closes, with the real price at 25,190 at that close. The trade exits at 25,190, a gain of 140 points, ₹9,100 per lot before costs. It gave back 50 points from the best price, the usual cost of an exit that waits for the averaged candles to change colour. On another day, the green run might last only two candles before a red one appears, and the trade would close near the entry for a small loss plus costs.

A short trade

On a falling day, Nifty futures on the 15-minute chart are below their 50-period average. A bounce prints three green Heikin Ashi candles, then two red ones follow, the second with no upper wick. The real price at the close of the second red candle is 24,660, and the real high of the two candles is 24,715.

  • Entry: 24,660, short
  • Stop: 24,720, a risk of 60 points, ₹3,900 per lot
  • Exit: the first green Heikin Ashi candle

If the red run carries Nifty futures to 24,520 at the close of the first green candle, the gain is 140 points, ₹9,100 per lot, and a round trip costs about ₹953. Falls are often faster than rises, so short Heikin Ashi runs tend to be shorter and sharper; the colour exit can come quickly.

Sizing and managing the trade

Size on the real stop. With a ₹5,00,000 account and a limit of 1% a trade, the budget is ₹5,000. The 65-point stop in the long example risks ₹4,225 per lot, so one lot fits. The 230-point daily stop risks ₹14,950 per lot, which needs a larger account or a smaller instrument.

Let the exit rule work. The strategy makes its money on long runs of one colour. Taking profits early on a good-looking candle cuts exactly the trades that pay for the many small losses. If you want to protect a gain, move the stop to the entry once the trade is one risk-unit in profit, and leave the colour exit in charge after that.

Watch for shrinking bodies. Three or four Heikin Ashi candles with smaller bodies and wicks on both sides often come before the colour changes. Some traders tighten the stop to the low of the last candle when that happens. Make it a written rule and test it, rather than a judgement made during the trade.

Close intraday trades by the end of the session. A 15-minute signal and stop mean nothing against an overnight gap.

What the trades cost

A round trip on one lot of Nifty futures costs about ₹966 to ₹973 at ₹20 an order and the rates in force from 1 April 2026, most of it STT at 0.05% of the sell value.4 Against the ₹4,225 risk in the 15-minute example, that is about 23%, which is a heavy load for a strategy that often exits near the entry. Three ways to lighten it:

  • Trade the signal with an option. With Nifty at 25,050 and five days to expiry, the 25,050 call costs about ₹163.39 in the model, with a delta of about 0.53. A rise to 25,190 lifts it by about ₹5,331 per lot; a fall to the 24,985 stop costs about ₹2,136. A round trip on the call costs about ₹83, because STT falls on the premium.
  • Use a higher timeframe. On the daily chart, stops are hundreds of points wide and costs are a small share of each trade.
  • Filter harder. Fewer, stronger signals mean fewer round trips.

A daily swing version

On daily candles, the same rules make a swing strategy. Suppose daily Nifty futures are above their 50-day average, a pullback brings three red Heikin Ashi candles, and two green ones follow, the second with no lower wick. The real close is 25,180, and the real low of the two days is 24,955.

  • Entry: 25,180
  • Stop: 24,950, a risk of 230 points, ₹14,950 per lot
  • Exit: the first red daily Heikin Ashi candle

If the green run lasts until Nifty futures close at 25,600, the gain is 420 points, ₹27,300 per lot, and the round trip costs about ₹987, about 7% of the risk. A daily position is held overnight, so it needs a plan for gaps and for the monthly futures expiry.

Bank Nifty, stocks and MCX

Bank Nifty futures. Bank Nifty moves about twice as many points as Nifty, so its 15-minute Heikin Ashi runs and stops are wider. A long signal at 55,300 with a stop at 55,130 risks 170 points, ₹5,100 per lot of 30; a run to 55,650 gains 350 points, ₹10,500 per lot, and a round trip costs about ₹991.

Stocks. Heikin Ashi works best on liquid stocks in clear trends, mostly on the hourly and daily charts. Avoid stocks around results and those in the F&O ban list, where gaps make the real-low stop unreliable.

MCX commodities. Crude oil, natural gas and metals trend for long stretches during the evening session, when global markets are open. Their daily candle covers a longer session than NSE's, so a daily Heikin Ashi signal on MCX reflects more trading hours. Check the contract's lot size and margin before sizing.

The backtesting mistake to avoid

Heikin Ashi prices are averages, not prices you can trade. A Heikin Ashi close of 25,032.50 may never have printed in the market. A backtest that fills orders at Heikin Ashi prices will look far better than live trading.

  • Use Heikin Ashi candles only for signals.
  • Fill entries and exits at real prices, such as the next real candle's open.
  • Set stops from real highs and lows.

See look-ahead bias and backtesting mistakes for other ways a test can mislead.

How large the gap can be

On a trending 15-minute chart, the HA close sits below the real close in a rising market and above it in a falling one, because it averages the open with the close. A backtest that buys at the HA close of a green candle buys below the real price; one that sells at the HA close of the first red candle often sells above the real price. Both errors flatter the result, trade after trade. The difference per trade may be only 10 to 20 points on Nifty, but on a strategy that averages 40 or 50 points a trade, that is most of the edge.

Heikin Ashi with option strategies

Option traders use the colour of the daily or hourly Heikin Ashi candles as a regime switch rather than an entry signal:

  • A green run on the daily chart suits bullish structures, such as a bull call spread bought for a move or a bull put spread sold below the market.
  • A red run suits the bearish mirror images.
  • Small bodies with wicks on both sides, day after day, describe the quiet market that neutral strategies such as an iron condor or a short strangle need.

In QuantPower, a signal can start or stop an algo, so a signal on daily Nifty that fires on the first green Heikin Ashi day (the HA body custom indicator turning above zero) can start a Bull Put Spread algo from Option bots, and a second signal on the first red day can stop it. The option algo carries its own legs, stops and exit time; the Heikin Ashi signal decides only when it runs.

Heikin Ashi compared with other trend tools

ToolWhat it showsSignal speed
Heikin AshiThe averaged trend, as candle colourSlow; few false changes
Normal candlesticksEach period's real open, high, low and closeFast; many false changes
Moving averagesThe direction of the average priceDepends on the period
SupertrendA trailing level set by ATRModerate
RenkoBricks of a fixed size, ignoring timeDepends on the brick size

Renko, another of the 19 chart types, shares Heikin Ashi's aim of hiding noise, but does it by ignoring time altogether. Heikin Ashi keeps one candle per period, which makes it easier to combine with time-based rules such as session opens and exit times.

When the strategy works, and when it does not

Works best when:

  • The market trends for hours or days, such as after a breakout or a strong open.
  • You want a rule that keeps you in a trend through small pullbacks.

Struggles when:

  • The market moves sideways. Colours flip often, and each flip costs a small loss.
  • A sharp reversal happens. The averaging delays the exit signal.
  • Gaps at the open. The first Heikin Ashi candle of the day blends in the previous session.

Filters to test

  • A trend filter: the 50-period average, a supertrend strategy line, or ADX above 25.
  • A minimum body size, to ignore weak signal candles.
  • A time filter for intraday trading, such as no entries after 14:30, and none in the first 15 minutes, when the first candle still carries the previous session's average.
  • A higher-timeframe colour: take 15-minute longs only when the hourly Heikin Ashi candle is green.

Add one filter at a time and keep it only if the average trade after costs improves across years.

Building the strategy in QuantPower

Heikin Ashi is one of the 19 chart types in Arth.live charts inside QuantPower, so the candles can be read on screen for any instrument and timeframe. For signals and backtests, the strategy reads the same idea from real prices through two custom indicators written in Arth Script, which keeps every fill at a real price.

  1. Write the Heikin Ashi body as a custom indicator. The HA open is an exponential average of the average price with a weight of one half, taken one candle back. In Arth Script: ohlc4 - (ema(ohlc4, 3) - change(ema(ohlc4, 3), 1)). Above zero is a green candle, below zero a red one.
  2. Write the lower-wick check as a second indicator: low - (ema(ohlc4, 3) - change(ema(ohlc4, 3), 1)). At or above zero means the candle has no lower wick. The server checks each formula before saving, and a saved indicator works in signal rules, backtests and Forward tests.
  3. Open Algos → Signal algos and create a signal on Nifty futures, 15-minute candles, with all conditions required: close above EMA 50; the HA body above zero; the lower-wick check at or above zero. Conditions are checked on closed candles.
  4. Choose the action. One-touch prepares the order for you to place with one touch; Auto places it by itself after you arm it, with every risk check.
  5. Protect the trade. A GTT at the real low of the signal candles as the stop, and a second signal for the exit: the HA body below zero.

The formulas reproduce the Heikin Ashi open after a short warm-up; the first few candles of a chart may differ slightly from the chart's own Heikin Ashi candles. A signal that places its own order costs no tokens; an algo that a signal starts is charged as a live algo, 200 tokens per 28 days. You can also describe the rules to Quanty in words, and it writes the indicators for you to review before they are saved.

Backtesting a Heikin Ashi strategy

QuantPower's rule backtest tests a condition on one instrument over up to 2,000 past candles from your connected broker, from 5-minute to daily, with a stop-loss and target in per cent, an exit rule, slippage and an estimate of charges. Because the conditions use the custom indicators and the fills use real candle prices, the backtest avoids the averaged-price mistake described above. See backtesting for the full method.

  • Test with and without the trend filter.
  • Test the number of red candles in the setup: two, three or four.
  • Compare the colour exit with a fixed 2R target and with a trailing stop.
  • Read the average trade after costs and the longest losing run, not only the win rate.

Read the report in this order:

  1. The trade list. Check that entries are at real prices after the signal candle closed, and that exits came on the first opposite-colour candle.
  2. Average win against average loss. A trend strategy with a colour exit should have an average win well above its average loss; if not, the exit is giving back too much.
  3. Win rate. 35% to 50% is typical. A much higher figure usually means the test is filling at averaged prices.
  4. Results by weekday and by month. Heikin Ashi strategies do well in trending months and poorly in ranges; check how long the poor stretches last.
  5. Exit reasons. Many exits at the initial stop mean the entries come too early in the turn; many colour exits near the entry mean the market is too choppy for the rule.

Then run the signal in forward test on live prices with test money before going live.

Account safety above the strategy

Every signal and algo sits under the account's own controls:

  • Smart Exit sets a profit target, a stop-loss and a trailing step for the whole account. On a hit it stops the algos and squares off.
  • The daily loss limit refuses new orders once today's loss reaches it.
  • The kill switch stops trading in a segment until that segment's next session, and stops the algos running in it.

Common mistakes

  • Trading Heikin Ashi prices. Orders fill at real prices.
  • Trading every colour change. In a range, most changes are noise.
  • No stop. The exit rule can lag in a fast reversal. A fixed stop caps the damage.
  • Reading the first candle of the day. It still carries the previous session's average and hides the gap.
  • Ignoring costs on short timeframes. Many Heikin Ashi trades exit near the entry, where costs decide the result.
  • Signals on an option's own chart. The option's price moves with time decay and volatility as well as the index, so its Heikin Ashi candles mislead.
  • Changing the setup count after a bad week. Two, three or four red candles is a choice to make once, in testing, not during live trading.

Where Heikin Ashi trading is going

Heikin Ashi has become a standard chart type rather than a specialist tool, and the question traders ask of it has changed from "does it look clearer?" to "does it add anything after costs?". Custom indicators that rebuild the averaged candles from real prices make that question testable on years of candles. Higher STT on futures from 1 April 2026 pushes short-timeframe trend strategies towards options or longer timeframes. And the retail algo framework in force since 1 April 2026 brings automated strategies under broker and exchange rules, so a Heikin Ashi strategy that runs as an algo needs its signal, stop and exit written down in exactly the terms this guide uses.5

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

Is Heikin Ashi better than normal candlesticks?

It is easier for spotting and following trends, but it hides the real open and close. Many traders use Heikin Ashi for direction and normal candles for entries and stops.

Which timeframe is best for Heikin Ashi?

15-minute and 1-hour charts are common for intraday futures, and daily charts for swing trades. Test on your own instruments.

Can Heikin Ashi be used for options?

Traders often read Heikin Ashi on the Nifty or Bank Nifty chart and trade options on that signal. The option's own chart moves with time decay and volatility, so signals on it are less reliable.

Why does the first Heikin Ashi candle of the day look odd?

Its open is the average of the previous session's last candle, so it does not reflect the overnight gap.

How many red candles should come before a long signal?

Three is a common starting point. Two gives more signals, many of them inside small wobbles; four or more waits for deeper pullbacks and gives fewer, cleaner signals. Test the choice rather than picking the one that looks best on recent charts.

Can I switch an Arth.live chart to Heikin Ashi?

Yes. Heikin Ashi is one of the 19 chart types. Each chart in a multi-chart layout can use its own chart type, so a normal candlestick chart and a Heikin Ashi chart of the same instrument can sit side by side.

References

  1. Dan Valcu, "Using the Heikin-Ashi Technique", *Technical Analysis of Stocks & Commodities* 22(2) (2004)
  2. John J. Murphy, *Technical Analysis of the Financial Markets* (New York Institute of Finance, 1999)
  3. NSE, equity derivatives contract specifications (nseindia.com)
  4. Union Budget 2026-27: securities transaction tax on futures and options raised from 1 April 2026 (indiabudget.gov.in)
  5. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, in force for every broker from 1 April 2026 (sebi.gov.in)
The example on this page is hypothetical and for illustration only. Backtested or simulated results do not guarantee future results. Trading involves substantial risk.