Rating: Full Star Full Star Full Star Full Star Empty Star
Allow only one order at one time
Previous 1 2 Next
zhangshapzen

Member Since Oct 16, 2019  1 posts zhangshapzen Oct 16 at 07:14
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

Member Since Jan 05, 2016  1048 posts Professional4X Oct 16 at 12:53
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

Member Since Jan 05, 2016  1048 posts Professional4X Oct 16 at 12:53
also see Metatrader Magic Number.

If it looks too good to be true, it's probably a scam! Let the buyer beware.
GIRAM801

Member Since Feb 19, 2019  1 posts GIRISH IYER (GIRAM801) Oct 22 at 05:53
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.
Loading
Loading
EURUSD 1.10523 GBPUSD 1.29018
USDJPY 108.842 USDCAD 1.32285

Tools

Community

Reviews

Brokers

Platform

Support


Twitter |  Facebook |  Site Map  |  Terms  |   Privacy Policy
©2019 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice. Past performance is not indicative of future results.