Risk warning

All articles, strategies and indicators are just reflecting a single traders opinion and should be viewed as that.
I advice everybody to trade with a DEMO account!

Saturday, August 20, 2011

Expert Advisor Builder for MetaTrader 4

Have you ever dreamed of having a profitable expert advisor for MetaTrader? But are you missing the programming skills to write one? Well there is a solution. There are a lot of tools and programs for making such an expert advisor. Some of them you need to buy, for other you need to pay a monthly fee. But there are also some that are totally free. Lets help you get started using such a free expert advisor creator.

You can find a free expert advisor creator on the following website.
http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/

It allows you to make a simple expert advisor without any programming skills. Lets make a simple strategy to help you understand the interface. Imagine that you want to make the following strategy.

Entry conditions:
Buy when the candle close above the moving average period 21
Sell when the candle closes below the moving average period 21
Exit conditions:
Close a buy position when candle closes below moving average period 21
Close a sell position when candle closes above moving average period 21

The first tab "template" and the second tab "variables" are for more experienced users. So we are going to leave them untouched. Next we are going to set our buy conditions. Click on the buy strategy tab. And click add.
Above you see how we set our buy condition. We check that the previous candle closed below the MA 21 and that the current candle closes above the MA 21. Below we did the same for our sell condition.
We now have set all our entry conditions. Now we have to tell the creator when we want to close our open buy position. We click on the close(buy) tab. And we specify when to close the open buy position which in our case will be when the candle close below the moving average 21.
Next we tell the creator when we want to close our open sell position which is in our case when we have a candle that closes above the moving average 21.
The creator allows you to set additional order options. Which we set as below.
You have now made your first simple EA. Click on complete and copy the code. Next you open MetaEditor. In the menu click file -> new. Chose a name for your expert advisor. Select the empty template that appears and replace it with the code generated by the expert advisor creator. 

Next step you compile the EA. In the menu -> compile.

Congratulations you have now made and compiled your first EA. You can now open MetaTrader en test the EA you just made. This was just for showing you how to use the expert advisor creator of course. Not profitable of course but maybe you are ready know to make something better.

2 comments:

  1. how can i set up a limit order? for ex. i would like to trade with trailing limit orders...
    (pending orders)

    ReplyDelete