Heiken Ashi Smoothed EA


Add to Cart

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. Vice versa for the sell signal.

The pro version does additionally has a exit strategy. It is like the entry filter but inverse. 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 ajdustable at all, the Heiken Ashi Smoothed has 4 different input parameters. Unlike the default Heiken Ashi, the Smoothed version is not pre-instealled in Metatrader. You first have to put the indicator in the directiory 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.

Included functions

All versions have variable Magic Number, Take Profit, Stop Loss, Lot Size and Slippage.





  • Version

    MT4 Basic v1.00
    MT4 Advanced v1.01
    MT4 Pro v1.01

  • Changelog


    May 24, 2016:
    Added: MA Trend filter and Heiken Ashi Smoothed filter to Advanced and Pro version.

    Apr 26, 2016:
    Initial release.

56 thoughts on “Heiken Ashi Smoothed EA

  1. 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. 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.

  2. 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. 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.

  3. 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.


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

  5. 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.

  6. 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. 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!

  7. 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. 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.

  8. 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. Yes, this is exactly what the MA trend filter does. You can choose the period, method etc. for this filter too.

  9. Hi:

    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.

  10. hi
    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. 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.

  11. 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?

  12. 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 .

  13. 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. 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.

  14. 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.

  15. 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. You can attach the EA to any timeframe. But normally such strategies works best on higher timeframes.

  16. 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.

  17. 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. Go to Tools > Options > Charts > Max bars in chart, and set it to 5000. This should work.

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

  19. 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. With the MA Trend Filter the EA only opens long trades if the current price is above the MA. Vice Versa.

  20. 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. 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. 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. 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. 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

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