Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1308

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Where do I find out the order expiry time in the strategy tester? The columns tab does not have it
How do you set the expiry time?
Add to the order comment, I don't see any other options(
Thank you
This is my first comment on the forum, I'm not particularly familiar with the community, so don't throw tomatoes at me. To the point. When I was writing my EA I faced with problem that OrdersTotal() works (which makes sense) for all open orders and I was surprised to find out that even if I set a master in conditions and copy code, two or more EAs on open charts at the same time do not let each other work (until one order is closed, the next one will not open). I searched a lot of places on the subject - I got a lot of solutions and as I understand it is elementary, but in all cases, nothing worked. What condition should I set when opening and/or closing "if... (...) " to uniqueize OrdersTotal only for a specific EA which is attached, and the other one (its OrdersTotal) would not be related in any way and keep its own count of all orders. Thank you.
Attach your code and you will be pointed out the errors
OrdersTotal() returns the total amount of all positions and orders in Metatrader 4
This way you can separate orders for a MedgX and a symbol...
@MakarFX,thank you.... I get these errors when compiling
'CounterOrderTradeType' - function not defined test for many expt trade.mq4 48 19
'CounterOrderTradeType' - function declarations are allowed on global, namespace or class scope only test for many expt trade.mq4 141 5