To use chat, please login.
Back to contacts

Allow only one order at one time

zhangshapzen
Oct 16 2019 at 07:14
1 posts
Keltrem posted:
Is it possible in either or both of MT4 and MT5 for an EA to recognise that an order is open in terminal (toolbox MT5)?

What I am hoping to achieve is this. EA is on 8 charts if an order is opened on one chart I do not want the EAs on the other seven charts opening new orders until the current open order is closed. Is this achievable in an EA?

Professional4X
Oct 16 2019 at 12:53
1189 posts
zhangshapzen posted:
Keltrem posted:
Is it possible in either or both of MT4 and MT5 for an EA to recognise that an order is open in terminal (toolbox MT5)?

What I am hoping to achieve is this. EA is on 8 charts if an order is opened on one chart I do not want the EAs on the other seven charts opening new orders until the current open order is closed. Is this achievable in an EA?


I already provided the answer to this question. Please read the first page of this thread. Thank you,

If it looks too good to be true, it's probably a scam! Let the buyer beware.
Professional4X
Oct 16 2019 at 12:53
1189 posts
also see Metatrader Magic Number.

If it looks too good to be true, it's probably a scam! Let the buyer beware.
GIRAM801 (GIRAM801)
Oct 22 2019 at 05:53
1 posts
Insert the following in the general instructions before the OnInit function

int MagicNumber = any common number (for all your charts);
int MaxOpenTrades = 1;

hope this will help

Regards,
Girish

Consistent monthly withdrawal
Please login to comment .