MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Freelancer services needed to perform 150+ jobs of traders
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.07.05 13:25
X trader v3

X trader v3 - expert for MetaTrader 4

| English Spanish Portuguese

Views:
25846
Rating:
votes: 4
Files:

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. 
Last comments | Go to discussion (12)
mathustans
mathustans | 2 Dec 2013 at 17:51
does it work in a real account or is it just demo?
MQL4 Comments
mql4_comments | 22 Jan 2014 at 16:09
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?
mrvisu
mrvisu | 20 Feb 2014 at 09:31
i hv upload it in my mt4 . but it shows its not working . i,m using hotforex
mrvisu
mrvisu | 20 Feb 2014 at 09:35
in the expert advisior field it showing in black icon . and other showing in blue icon ? its working or not
MQL4 Comments
mql4_comments | 25 Feb 2014 at 11:21
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 :)