How to use the Expert Advisor generator

Most of the trading strategies have four basic elements. They are open long, close long , open short and close short positions. In this Expert Advisor generator each of this rules are implemented in separate tab.

Condition tabs

In this section you must select your conditions for opening or closing long and short positions. You can choose indicators, prices , hour, minute and value.

Example : We want to open buy when the hour is 14:00 , and the previous close is lower than the pre-previous. So we open the "Open Buy" tab and in the first box, we select hour , we choose "=" and in the last box we will choose value , and there we will type 16.So this is our first rule. Now to add the second rule we must press the button Add. There will appear the next rule elements. There we will choose close, with shift 1 (previous) , < (lower) and close with shift 2 for the pre-prevoius value. And the entry rule is ready.

There is no need to fill all the tabs. If you want , you can fill only the entry rule for open long positions, and leave the rest of the rules empty. The exit for the position can be its stoploss and takeprofit.

Options tabs

In this section you must select your settings for your Expert Advisor

Expert Magic Number: this is your expert advisor unique ID number. All the positions opened from your Expert Advisor will be with the same ID and the expert advisor will manage only them.So you can trade or use other expert advisor at the same symbol.It is good to choose different number for each trading system.

Lots: this is the base lot for the trading system.All positions will be opened with this volume.

Stop Loss: this is the stoploss value for your positions. If you don't want to use this setting , leave it 0. If you choose higher value, you must set it higher than your broker stops value.Usually (1.5 - 2) times the Spread for most of the brokers.

Take Profit: this is the stoploss value for your positions. If you don't want to use this setting , leave it 0. If you choose higher value, you must set it higher than your broker stops value.Usually (1.5 - 2) times the Spread for most of the brokers.

Trailing Stop: this is the Trailing Stop value for your positions.It will activate when your position is with higher profit than the value set in the box. If you don't want to use this setting , leave it 0. If you choose higher value, you must set it higher than your broker stops value.Usually (1.5 - 2) times the Spread for most of the brokers.

Use Long Positions : here you can set if you want to use long positions or not.

Use Short Positions : here you can set if you want to use short positions or not.

Expert advisor code tab

This is the last state of creating your expert advisor.When everything is set, open this tab and generate your code.When the code is ready copy it and paste it in your MetaEditor , compile it and you can start using your Expert Advisor in your MetaTrader platform.

Video