This is my first comment on the forum and I'm not particularly familiar with the community, so don't throw too many 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 in case of setting conditions for "one order closed, the next one opened" I was surprised to find out that even if I set masters in conditions and duplicate code, two or more EAs on open charts on my account don't let each other work simultaneously (until one order is closed, another 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.
Порт-моне тв: 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
Добавил тему Окно модификации Доброго времени суток. В терминале, если я дважды щелкаю мышью на линию ордера, то открывается окно модификации. Но если на линии находится цена открытия одного ордера и тейк профит другого, то открывается последний измененный ордер. Уважаемые Профи Добавил тему Нужен индикатор. Кто может написать такое? Я уже...
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