MQL4 - automated forex trading   /  

Code Base

Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

Code Base  Expert Advisors  X trader v3 To post a new code, please log in or register

Download MetaTrader 5 and visit MQL5.community Code Base
and Trade on the Go!
and Trade on the Go!
Couldn't find the right code? Order it in the Jobs section

This Expert Advisor is for
MetaTrader 4
Download MT 4 - 455 Kb

and Trade on the Go!

and Trade on the Go!

Name:
X trader v3
Author: tonny (2013.07.05 15:25)
Rating: 9.5
Downloaded: 21045
Download:
 X trader v3.mq4 (8.3 Kb) View

X trader trades using two moving average crosses. The EA contains time filtering as an additional feature to help in optimization or your further research. The default settings are not necessarily the best. Optimize them in MetaTrader 4 to get the best settings for your preferred timeframe and broker. The non straight forward settings are explained below:

  • CloseOnReverseSignal - set to true to close trades of the previous signal when an opposing trade signal occurs.
  • TimeSettings - set the hour and minutes to start/end trading. 
12 comments: 1 2   To post a new comment, please log in or register
lou5000:
This was working well in a demo account but in a live account, it is giving an error on some trades (Hedge is Prohibited)... It seems to be trying to enter a new order before closing the one in the opposite direction.

The interesting thing is most of these missed/failed trades were would have been very successful trades (would have hit the target with no issues)...

CloseOnReverseSignal is set to true.

How would I adjust the code so it closes open trades before placing an order in the opposite direction?
nvm got it figured out :)

25.02.2014 12:21 lou5000
in the expert advisior field it showing in black icon . and other showing in blue icon ? its working or not
20.02.2014 10:35 mrvisu
i hv upload it in my mt4 . but it shows its not working . i,m using hotforex
20.02.2014 10:31 mrvisu
This was working well in a demo account but in a live account, it is giving an error on some trades (Hedge is Prohibited)... It seems to be trying to enter a new order before closing the one in the opposite direction.

The interesting thing is most of these missed/failed trades were would have been very successful trades (would have hit the target with no issues)...

CloseOnReverseSignal is set to true.

How would I adjust the code so it closes open trades before placing an order in the opposite direction?
22.01.2014 17:09 lou5000
does it work in a real account or is it just demo?
02.12.2013 18:51 mathustans
It 's really GOOD ..
Just do the opposite ........
29.11.2013 18:56 Matrix8756
alasdeaguila:
tarmo1979:

.


can you share your setting i try this Ea but no so good.

forexfbi:

Excellent EA, got some killer optimized backtest settings with this already.


Going to add it to this Best Forex Robot Competition on a demo account.



22.11.2013 18:02 2094591
tarmo1979:

.


can you share your setting i try this Ea but no so good.
17.10.2013 14:38 alasdeaguila
hi can you share the best setting, what pairs and TF? thanks
16.10.2013 01:04 alasdeaguila
forexfbi:

Excellent EA, got some killer optimized backtest settings with this already.


Going to add it to this Best Forex Robot Competition on a demo account.


Good to hear and best of luck.
10.10.2013 10:48 tonny