Jump to content

Free EA, HMA EA, trend following EA on M5.


Recommended Posts

download the EA from here, include settings, backtest pictures

 

I just quickly backtested it on the EURUSD M5 timeframe with the 5 digits settings. if you are using 4 digits, you may just to use the default settings.

play with it in backtesting and find out the best settings, then you can forward test with it.

 

This EA has a very nice code, and is using HMA_V07.1 indicator,

here is the logic


  hma4_1 = iCustom(Symbol(), 0, "HMA_v07.1", 4, 200, 1, last_bar);
     hma4_2 = iCustom(Symbol(), 0, "HMA_v07.1", 4, 200, 1, last_bar + 1);
     hma6_1 = iCustom(Symbol(), 0, "HMA_v07.1", 6, 200, 1, last_bar);
     hma6_2 = iCustom(Symbol(), 0, "HMA_v07.1", 6, 200, 1, last_bar + 1);
     hma8_1 = iCustom(Symbol(), 0, "HMA_v07.1", 8, 200, 1, last_bar);
     hma8_2 = iCustom(Symbol(), 0, "HMA_v07.1", 8, 200, 1, last_bar + 1);
     hma10_1 = iCustom(Symbol(), 0, "HMA_v07.1", 10, 500, 1, last_bar);
     hma10_2 = iCustom(Symbol(), 0, "HMA_v07.1", 10, 500, 1, last_bar + 1);
     hma20_1 = iCustom(Symbol(), 0, "HMA_v07.1", 20, 500, 1, last_bar);
     hma20_2 = iCustom(Symbol(), 0, "HMA_v07.1", 20, 500, 1, last_bar + 1);
     hma40_1 = iCustom(Symbol(), 0, "HMA_v07.1", 40, 800, 1, last_bar);
     hma40_2 = iCustom(Symbol(), 0, "HMA_v07.1", 40, 800, 1, last_bar + 1);
     hma80_1 = iCustom(Symbol(), 0, "HMA_v07.1", 80, 800, 1, last_bar);
     hma80_2 = iCustom(Symbol(), 0, "HMA_v07.1", 80, 800, 1, last_bar + 1);
     hma200_1 = iCustom(Symbol(), 0, "HMA_v07.1", 200, 1000, 1, last_bar);
     hma200_2 = iCustom(Symbol(), 0, "HMA_v07.1", 200, 1000, 1, last_bar + 1);
     hma420_1 = iCustom(Symbol(), 0, "HMA_v07.1", 420, 2000, 1, last_bar);
     hma420_2 = iCustom(Symbol(), 0, "HMA_v07.1", 420, 2000, 1, last_bar + 1);

        if (
        hma420_1 > hma420_2 &&
        hma200_1 > hma200_2 &&
        hma200_2 > hma420_2 &&
        hma4_1 > hma6_1 &&
        hma6_1 > hma8_1 &&
        hma8_1 > hma10_1 &&
        hma10_1 > hma20_1 &&
        hma20_1 > hma40_1 &&
        hma40_1 > hma80_1 &&
        hma4_1 > hma4_2 &&
        hma6_1 > hma6_2 &&
        hma8_1 > hma8_2 &&        
        hma10_1 > hma10_2 &&
        hma20_1 > hma20_2 &&
        hma40_1 > hma40_2 &&
        hma80_1 > hma80_2 &&
        long
        )
{
 myOrderType=2;
}
 
//buy order
 if (
        hma420_1 < hma420_2 &&
        hma200_1 < hma200_2 &&
        hma200_2 < hma420_2 &&
        hma4_1 < hma6_1 &&
        hma6_1 < hma8_1 &&
        hma8_1 < hma10_1 &&
        hma10_1 < hma20_1 &&
        hma20_1 < hma40_1 &&
        hma40_1 < hma80_1 &&
        hma4_1 < hma4_2 &&
        hma6_1 < hma6_2 &&
        hma8_1 < hma8_2 &&        
        hma10_1 < hma10_2 &&
        hma20_1 < hma20_2 &&
        hma40_1 < hma40_2 &&
        hma80_1 < hma80_2 &&
        short
        )

so it is like use the HMA gumma on multi-timeframe to detect the big trend in M5, and use the trail to exit. my setting is selecting the trail 10 pips to exit. you can use the rsi to exit option as well.

http://www.formulatrader.com/download/bild/hma.gif

 

ofcause, there is hope to find a good ea for trend condition, if we all help!.

Trade logic, see picture. use the upperleft corner icon to enlarge the picture.

http://www.formulatrader.com/download/bild/hmalogic.gif

 

Another people has tested it as well.

Link to comment
Share on other sites

Re: Free EA, HMA EA, trend following EA on M5.

 

This reminds me of the Sniper Forex strategy, which was discussed a while ago on this site. It also uses HMA and is currently the 5th in the top-ranked forex services at forexpeacearmy:

http://www.forexpeacearmy.com/public/review/www.sniperforex.com

It uses MetaTrader indicators but an EA is not provided, so it needs to be traded manually. It would be good to see how profitable an EA of the Sniper Forex trading strategy would be.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...