Home » Expert Advisor » Heiken Ashi Smoothed EA

Heiken Ashi Smoothed EA

Get the Heiken Ashi Smoothed EA!

3.8/5243 ratings

About the Heiken Ashi Expert Advisor

The Heiken Ashi EA uses the default Heiken Ashi indicator or the free Heiken Ashi Smoothed indicator to enter a trade.

A buy trade is generated if 1,2 or 3 (according to the entry filter) blue candles follow after a red one. Vice versa for the sell signal.

The pro version does additionally have an exit strategy. It is like the entry filter but the other way round. A buy trade is closed if 1,2 or 3 red candles follow in a row. Vice versa for the sell signal.

Heiken Ashi vs Heiken Ashi Smoothed

While the default Heiken Ashi is not adjustable at all, the Heiken Ashi Smoothed has 4 different input parameters. Unlike the default Heiken Ashi, the Smoothed version is not pre-installed in Metatrader. You first have to put the indicator in the directory MQL4/indicators. The smoothed version is for free and is included in the download files.


Copy the EA file (Heiken Ashi Smoothed EA Basic.ex4) into the MQL4/experts folder
and the indicator file (Heiken Ashi Smoothed.ex4) into the MQL4/indicators folder.

Versions overview

Functions Basic Advanced Pro
Money Management
Trade on new Bar
Inverse Strategy
Trailing Stop
Break Even
Spread Filter
MA Trend Filter
Heiken Ashi Smoothed Trend Filter
Trade max. once per Bar
Exit Strategy
Candle Trail
ATR Trail
Day/Time Filter
Reverse on Opposite Signal
Trade Direction

Starter Bundle

The Heiken Ashi Smoothed EA is included in the EA Starter Bundle.

More about the Heiken Ashi Smoothed EA

  • You can install the Heiken Ashi Smoothed EA on limitless demo and live accounts.
  • Note that this Metatrader Expert Advisor does not draw any indicator on the chart.
  • You do not understand all the functions? Take a look at our function glossary.
  • This EA is not pre-optimized. Please read the article about optimization first.
  • The license of every Expert Advisor you download is time limited, but you can re-download newer versions any time in your purchase history.
  • MT4 Basic v1.01
  • MT4 Advanced v1.02
  • MT4 Pro v1.03
  • Dez 13, 2017

  • Fixed: Problem with trading sessions of some brokers
  • Aug 28, 2017

  • Fixed: Martingale function in Pro version
  • May 24, 2016

  • Added: MA Trend filter and Heiken Ashi Smoothed filter to Advanced and Pro version
  • Apr 26, 2016:

  • Initial release

Need a good Forex Broker for your trading tools?

100 thoughts on “Heiken Ashi Smoothed EA”

  1. jamesroland005 says:

    hello, before I start I say a big thank you for your works and the permition to test your bots and indicators.I am in test mode now, do you have any advice to give me?

    1. Yannick says:

      Yes, have you read the optimization guide?

  2. Shah says:

    Hello Yannick…

    I really love this Heiken EA & Indicator…still very very hope, you will make the MT5 version…waiting for that good news. Thanks buddy.

    1. Yannick says:

      It will take time to make the mql5 version.

  3. tommy liem says:

    what timeframe recomended for this ea?

    1. Yannick says:

      You can use it on any timeframe.

  4. Bart Kapteyn says:

    Hi Sorry but Id like a refund please I didn’t realise that
    there was no back testing and it isn’t working with my Meta-trader 4 I must have accidentally changed the file type and I don’t know how to get it back to original

    Thanks anyway cheers

    1. Yannick says:

      MT4 has the possibility to make backtests. It works with any MT4 account. No, problem, just re-download the EA in your account.
      A refund is not possible, but I can offer you another product in exchange.

  5. Shah says:

    I hope, there will be MT5 version, do you plan to make this EA for MT5 version? because now..broker is start promoting trading much more with MT5.

    1. Yannick says:

      I do not know. I’m actually very busy in some other (non-forex related) stuff.

  6. srdillip says:


    I have just bought the EA, would like to know if this will work on Renko bar.


    1. Yannick says:

      I will work with some Renko charts. But with no guarantee.

  7. Richard Yembe says:

    Hello, I just bought Heiken Ashi Smooth EA. I will like to know the best timeframe, Best Pairs, Number of Pairs and settings from anyone who had been using it out there.

  8. Raphael says:

    When will the MT5 version be available pls?

    1. Yannick says:

      This is not yet in planning.

  9. Shah says:

    Hello Yannick, i just bought your Heiken Ashi Smoothed EA Pro & i want to ask what is the difference between Heiken Ashi Smoothed Indicator & Heiken Ashi Smoothed Filter setting of EA Pro & what is the actual function of Heiken Ashi Smoothed Filter?

    1. Yannick says:

      The filter is a second HAS indicator. The EA will only open long trades if the filter is in an uptrend (blue). Vice versa for short.

  10. Sajith says:

    I purchased HA Pro and running for while. I’m not using any filters But set reverse on opposite signal. The problem is Some times Signal change after open the candle to opposite. I want to know what is the possibility of adding a direction verification “input”(true/false)? Every time candle open, if it is set, check the direction, if wrong, change buy to sell or sell to buy? If possible, able to minimize the losses and capture more profitable trades.

    1. Yannick says:

      Unfortunately, I do not understand what you mean. Could you please open a new topic in the forum with more details?

  11. Noel Nobleza says:

    Hi Yannick,

    I have noticed with Heiken Ashi Pro is only trade once when the time the MA crossed, but for example your trades been closed by stop loss, and the trend continues, it will not open a trade anymore. Can you please function that it will continue trading when the trend is still strong. Same with buy and sell.


    1. Yannick says:

      Can you please post an example in the forum. I am not sure if I have understood it right.

  12. Noel NObleza says:

    Hello Yannick,

    If I set the Trade max. once per Bar to false, how many trades the EA will open, example in a bullish trend?

    1. Yannick says:

      It will only have one position open at the time. But if you use this function with tradeOnNewBar = false, the EA can open multiple trades in a row on the same bar. Normally you would want to let it to true since it filters out many bad trades.

  13. Raja says:

    Hi, Any back-testing result of the Heiken Ashi EA?

    1. Yannick says:

      Unfortunately, I do not provide any backtests.

  14. Noel Nobleza says:

    Hi Yannick,

    I like your EA, I wish there is some image in the charts to show current settings. Regarding Heiken Ashi Smoothed filter what does it do? there is MA period 1 & 2 but I dont know how the functions is.

    1. Yannick says:

      The EA opens only long position if the color of the HA filter is blue. Vice versa for short.
      THe MA Periods are settings of the indicator. Please download the free Heiken Ashi Smoothed indicator and see how the different settings affect the indicator.

  15. Ethan says:

    Can this EA trade continuously on new candle?

    1. Yannick says:

      When the tradeOnNewBar function is set to true, the EA will only trade on new candles.

  16. Shah Legno says:

    Hello Yannick, can u make this Heiken Ashi Pro EA, the signal entry trigger is at first candle color change buy or sell not a second candle confirmation, because it’s quiet a late entry for second candle, hope u can modified it for Pro version.

    1. Yannick says:

      If you set the tradeOnNewBar to false, the EA will not wait for a new candle as confirmation to enter a trade.

      1. Shah Legno says:

        Thanks Yannick to inform me about the setting.

        1. Yannick says:

          You’re welcome 🙂

  17. jose says:

    hello, Which of your robots has better performance?

    1. Yannick says:

      I do not have any statistics about this.

  18. Kamal Brooks says:

    Hey I just purchase your HA pro and I don’t see it coming up in my MT4. Do you have any suggestions what that might be? If not, I would like to be refunded.

    1. Yannick says:

      Have you installed it correctly? “Copy the EA file (Heiken Ashi Smoothed EA Basic.ex4) into the MQL4/experts folder
      and the indicator file (Heiken Ashi Smoothed.ex4) into the MQL4/indicators folder.” A refund is not possible.

      1. Kamal Brooks says:

        No, I didn’t install it correctly but I just fixed it now. How do I get the signals to work? I’m not sure if I phrased that question correctly but I hope you know what I’m trying to ask.

        1. Yannick says:

          I’ve you have installed it correctly and put it on the chart, the EA should enter the first trade after a while.

  19. Raphael Coman says:


    I would like to add filters to this EA, based on other indicators. Let me know if you can code a bespoke EA.

    1. Yannick says:

      Unfortunately, at the moment I do not make custom modifications.

  20. vamsi says:

    Is it possible to see the source code, if I purchase this robot? I want to combine logic of this robot with that of my money management strategy.

    1. Yannick says:

      No, you can’t access the source code.

  21. Titos Ieronymakis says:

    Hello Yannick, any plans for MT5 Heiken Ashi Smoothed EA?

    1. Yannick says:

      I will make more MT5 EAs in late 2017, early 2018.

      1. Titos Ieronymakis says:

        Great Yannick, I am looking forward to Heiken Ashi Smoothed EA for MT5 !

  22. Michael F. says:

    Hi Yannick,

    I’ve backtested the HEEA Basic. I want to buy the Pro version. So i have following questions:
    1. Can i use the the already (basic) created setting files for the Pro Version (import)?
    2. Makes it sense or should I backtest additional “pro” features like “Trailing stop, Reverse on Opposite and Exit Strat.” with the “basic” created settig files?
    3. Comes there a kind of a “manual” with the “pro” version, what explains the function of the several filters?

    Than you in advance for your reply!
    Kind Regards

    1. Yannick says:

      1. Not sure if you can simply import the settings, but you can copy it manually.
      2. Yes, it makes sense to optimize the additional functions.
      3. There is not additional manual included, but you can use the functions glossary.

      1. Michael F. says:

        OK, thank you!

  23. big bad wolf says:

    Hello Yannik,
    in the Function glossary under Reverse Opposite Signal I get the instruction: MaxOpenOrders must be set to 1 to make it work.
    Where can I find it? An extra to the EA Inputs? Can I make the ROS work without the MaxOpen Orders?
    Where can I find explanation of HA smoothed filter, not in Function Glossary.

    1. Yannick says:

      The Heiken Ashi Smoothed EA does not have a MaxOpenOrder, so you can ignore this. No, the HA smoothed filter is not in the functions glossary because its only implemented in the Heiken Ashi Smoothed EA. Its basically a second Heiken Ashi Smoothed indicator with a higher period as filter. The EA does only open buy trades if the HA Filter is blue. Vice versa for sell trades.

  24. Silvestre says:

    I have a question:
    For martingale option, it’s possibile to choose to risk an account percentage, instead of fixed lots?
    Example: ( 1% >> 2% >> 4% ) reverse and doubling in percentage account.


    1. Yannick says:

      No, the martingale functions is for modifying the Lotsize only.

      1. Silvestre says:

        it is possible to implement this feature?

        1. Yannick says:

          Unfortunately I do not intend to add this feature.

  25. rainer aasamae says:

    I downloaded the new version,still says error License expired please download a new version?

    1. Yannick says:

      This should not happen. Please contact the support for this.

  26. wolfgang lampe says:

    Hello Yannick, in “max open orders”, how can I put in a number x instead of just “true” or “false”? In the functions glossary it gives me this option.

    1. Yannick says:

      There is no “max open orders” function included in this EA.

  27. wolfgang lampe says:

    Hi Yannick, sorry to touble you again. The new Pro Version doesn’t even want to install in the navigator list. The indicator shows up in the navigator list ok. Both Indicator and Expert folder are correctly allocated. The Basic version from before installed easily as normal and removes and re-installs no problem. Any suggestions?

    1. Wolfgang Lampe says:

      Hello Yannick, have been able to resolve the issue as I described it before. EA appears now as needed. Lets see what it can do now!

  28. Angelo says:

    Hi Yannick,
    first of all thank you very much for your very interesting free resources you share with us!

    I made some simple backtest on free Heiken Ashi Smoothed EA.

    First thing: “Heiken Ashi smoothed” EA didn’t work for me, I uploaded it equally as “Heiken Ashi Smoothed EA basic” one into “Experts” folder, but simply it doesn’t open any positions. Same timeframe, same broker, same period as the backtest wish the other free EA.

    Following message appears: “Test generator error”.

    Second thing: I saw that basic version closes positions with TP and SL only if I’m not wrong.

    I’d like to ask you what about advanced and pro version EAs of Heiken Ashi. What are their basic backtesting results (without further MT4 optimization)?

    EAs for me are very interesting but before buying I need to know how they performed in backtest, and if you have some real accounts to show.

    I don’t currently have much knowledge in optimizing EAs on MT4, so for me it’s much better having already optimized EAs.

    Any additional info you could share is well appreciated: initial deposit, lot size, period, timeframe, currency couple, drawdown, balance growth etc.

    Thank you very much!

    1. Yannick says:

      You have to copy the indicator “Heiken Ashi Smoothed” into the /indicators folder an the EA into the the /experts folder.

      Yes, basic version closes only on TP or SL. The backtest for the Pro and Advanced will be the same result as for the basic, because all additional function are deactivated by default. Unfortunately I do not provide pre-optimized EA. I you need to know more about optimization, read this guide.

      The EA works on all accounts, timeframes and symbols.

  29. wolfgang lampe says:

    Hello Yannick, am very impressed with what you have put together on your web site!
    I am particularly interested in the HA Pro and would like to know in wich parameter range the trend filter works.
    Comparable to a 200 SMA maybe? Can the Ea be set to open long trades only when above MA and short trades only when below?

    1. Yannick says:

      Yes, this is exactly what the MA trend filter does. You can choose the period, method etc. for this filter too.

      1. wolfgang lampe says:

        Super Yannick, genial ausgetueftelt! Vielen Dank!

  30. Douglas Grobbelaar says:


    I keep getting this Alert Heiken Ashi Smoothed Indicator not found when going to different time frames?!
    EA in Expert Folder
    Smoothed in Indicator Folder
    Please help – Thanks – Doug.

    1. Yannick says:

      Does this alert only appear if you change the timeframe? Can you mail me the errors in the journal/experts tab?

  31. Erez Atia says:

    Why would you offer such thing as ReverseOnOppositeSignal.
    What is the logical thinking behind it when the purpose of this indicator is to buy on blue and sell on red?


    1. Yannick says:

      This function does exactly that. If there is a long position open and a short signal is generated, the EA will close the long position and open a short position.

  32. Magdalena Krypa says:

    If in pro version this ea can work like : when is buy signal order is open for buy, when will be sell ea will close buy order and open sell signal?

    1. Yannick says:

      Yes, if the ReverseOnOppositeSignal function is set to true.

  33. Tony Whyte says:

    Hi Yannick My mistake about Chameleon not trading x 2 decimal points . I could not get it to trade Index CFD’s in whole numbers like 9525 in older MT4 versions .

  34. Tony Whyte says:

    Hi Yannick Your HA / EA looks like Chameleon EA , but Chameleon will not trade CFD’s . Will HA / EA trade
    Index CFD’s with x2 decimal points ( 9250.55 ) ?

    1. Yannick says:

      Both EAs are able to trade CFD’s. Please download the free version to test it. If you have any problems please send me your .set file and some information about the broker with my contact form.

  35. Carlos says:

    I am new to Heiken Ashi, but I like it.
    Can the price be controlled on buys/sells on new candles.
    “Example” if going bull and bear appears, double the amount of money per pip.

    1. Yannick says:

      Unfortunately there is no such feature implemented.

  36. Bibin Cherian says:

    I have purchased Heiken Ashi EA-Metatrader 4 Pro but I didn’t see a MA Trend Filter and a second Heiken Ashi Smoothed indicator as filter. Can you send me these filters?

    1. Yannick says:

      Please download the newest version 1.01 in your account.

  37. Bibin says:

    What time frame I need to add Heiken Ashi Expert Advisor?

    1. Yannick says:

      You can attach the EA to any timeframe. But normally such strategies works best on higher timeframes.

  38. Nandarani says:

    I just posted a comment asking whether the HASmoothed filter settings are user defined. I asked because I am looking at gold. The plain heiken ashi indicator caught the fact that there was a reversal better than the HASmoothed did – referring to the large reversal after NFP in early June. Smoothed is still showing a buy on the Daily – for me, this would be a too large stop loss to be worth risking. Yet I don’t really understand the settings on the HAS… I would have to read up on the indicator itself to understand and couldn’t really effectively use tons of hours trying to strategy test various alternatives.

    1. Yannick says:

      Yes, you can define all input parameters of the HASmoothed indicator.

  39. Nandarani says:

    The trader inputs own settings into the HAS trend filter, correct?

    1. Yannick says:

      Yes, exactly

  40. rainer aasamae says:

    Why is he telling me all the time,Heiken Ashi Smoothed indicator not found?

    1. Yannick says:

      Please check if you have installed the indicator in the right folder.


    Hi, I’m trying Heiken Ashi EA and history expert says “indicator is too slow, please rewrite the indicator, please” and testing the only indicator metatrader hangs. You could tell me what could be the problem?. Thank you.

    1. Yannick says:

      Go to Tools > Options > Charts > Max bars in chart, and set it to 5000. This should work.

  42. Fuchur says:

    Great EA ! Really ! Also looking forward to Trend Filters, but it’s already great !!!
    Keep up the good work !

  43. fuchur says:

    Great EA, will surely profit even more from filters.
    With an MA Trend Filter, when MA tends downwards but HAS turns bullish, will the EA open a buy position and waits until MA turns upwards later in the trend and HAS is still bullish, or will it skip the trade completely ?

    1. Yannick says:

      With the MA Trend Filter the EA only opens long trades if the current price is above the MA. Vice Versa.

  44. João says:


  45. Freddy Geudens says:

    Hi Yannick,

    I’ve studied your Heikin Ashi EA and I think it’s a very powerfull ea. But I think it needs a very little optimalization to make it one of the greatest ea’s you developed. Could you implement an ADX filter like you did in the ichimoku ea , I would be so happy if you do so . I tested it for a couple of days now manually and results are very promising. So I’ll not hesitate to buy your pro version. Maybe some others think the same way. Thx

    1. Yannick says:

      I will add a MA Trend Filter and a second Heiken Ashi Smoothed indicator as filter. I’m not sure if I will include a ADX filter.

      1. Fred says:

        Ok thx looking forward to it !!

      2. joe cooper says:

        I just purchased the HA EA, I didn’t see a MA Trend filter or Heiken Ashi Smoothed as a second filter. Is it possible that I can receive that up date?

        1. Yannick says:

          I have not implemented it yet. I will make it the following week.

          1. Fred says:

            I see in the functions tab the 2 entry filters you mentioned to add . Are they already programmed ?
            And could you give a short explanation about the heikin ashi smoothed filter ? Thx

          2. Yannick says:

            Yes, they are already implemented. The EA will only generate a buy signal if the HA filter is blue. (red for sell)

Leave a Reply to Silvestre Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.