Close operation when it opens in the opposite direction
-
Hey,
Is possible to close the current "sells" operations
when another ea open a 'buy 'operacion ,
and close the "buy" when it open a "sell".Another question if is it possible to create an ea that only accepts for example the first buy and denies the remaining buys orders and executes only the first sell and denies the others sells until the first buy is opened and so succinctly (from another ea not created by fxdreema)?
i tried something else but it doesn't work, maybe cause the operations comes out another ea?
https://fxdreema.com/shared/fuwF7pfie -
@chocoloco-0 Well, basically each EA in MT4 uses a specific number in order to identify it's own trades. This is called magic number. Assuming that you can have influence on the magic number of the external EA there might be a chance to build what you try to accomplish.
However, if you have no clue how the external EA manages it's trades, I'd strongly recommend to refrain from your idea!
In worst case both EA produce ping pong conditions where 1 EA for instance opens a trade and the other closes it immediately or adjustment of SL are done by both causing thousands of order modifications.If you know the conditions of the external EA maybe have a try to rebuild it with fxdreema. If you don!t want to do that effort contact the creator of the external EA and ask him to fix the issues you're facing with it.
-
Thank you for the answer.