Download MetaTrader 5

EA opening only one order

To add comments, please log in or register
TraderOfTheYear
10
TraderOfTheYear 2016.10.31 15:22 

I'm trying to create an EA based on stochastic and moving averages. It works ok but I have noticed that if i have a position already opened on one pair is not going to open another on another paireven if it meets the requirements. Can anyone help me with this? 

whroeder1
14753
whroeder1 2016.10.31 16:42  
TraderOfTheYear: if i have a position already opened on one pair is not going to open another on another paireven if it meets the requirements. Can anyone help me with this? 
Using OrdersTotal directly and/or no Magic number filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.) Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
iflyonthesky
467
iflyonthesky 2016.11.02 21:16  
TraderOfTheYear:

I'm trying to create an EA based on stochastic and moving averages. It works ok but I have noticed that if i have a position already opened on one pair is not going to open another on another paireven if it meets the requirements. Can anyone help me with this? 

im not programer but i think u should chang the magic number at another chart then i hop it will work..
Fstrifoerr8
36
Fstrifoerr8 2016.11.03 23:27  
iflyonthesky:
im not programer but i think u should chang the magic number at another chart then i hop it will work..
Or at least Symbol.
Nguyen Nga
7169
Nguyen Nga 2016.11.04 13:11  
TraderOfTheYear:

I'm trying to create an EA based on stochastic and moving averages. It works ok but I have noticed that if i have a position already opened on one pair is not going to open another on another paireven if it meets the requirements. Can anyone help me with this? 

it is easy if you post your code.

To add comments, please log in or register