hi,
is there any possibility to control the orders from an actual running EA ?
e.g. the EA generates a BUY order with specific attributes, and i want to design another EA which denies the order from this other system ...
is that possible ?
or e.g. that there is a controlling instance which checks all orders from different EA´s, and if my own programmed EA accepts the conditions of the order, the order will be executed ...
Can I design such a EA ?
We can not altere our send order, but we can combine filtered it out before send order or close, close and reverse, or delete ticket .
hi,
is there any possibility to control the orders from an actual running EA ?
e.g. the EA generates a BUY order with specific attributes, and i want to design another EA which denies the order from this other system ...
is that possible ?
or e.g. that there is a controlling instance which checks all orders from different EA´s, and if my own programmed EA accepts the conditions of the order, the order will be executed ...
Can I design such a EA ?
The EA that originally opens the orders could set a predefined magic number which would then be used by the 2nd EA to positively identify orders for modification. The originating EA could also write this magic number along with status information to a file (ie. currently safe/unsafe to modify my orders). Your 2nd EA could then be given read access to this file.
Depends on how much control you have over the 'originating' EA.
If you have no control over the originating EA, then I guess it depends upon how predictable its behaviour is. For example, if it is the only EA to open orders for a certain account, then you've just ID'd them without the use of magic numbers. And if the originating EA only opens, modifies or closes orders at predictable times, then you can avoid conflicts without making the EAs aware of each other's state - just remember to check the trade context before performing any functions on those orders.
Hi Ulukai
Article "Ultimate Certainty: Automatic Trading Concept of AIS Series Software" contains "External control" sample.
Best regards
Ais
"If you have no control over the originating EA"
thats the point, I cannot control the originating EA and I have not designed this EA. The only thing the second EA should do,
is to enable or disable the originating EA´s orders, if a specific condition is reached.
my problem is, to find a On/Off function for the original EA, so outgoing orders will be blocked and modified by a second EA.
"If you have no control over the originating EA"
thats the point, I cannot control the originating EA and I have not designed this EA. The only thing the second EA should do,
is to enable or disable the originating EA´s orders, if a specific condition is reached.
my problem is, to find a On/Off function for the original EA, so outgoing orders will be blocked and modified by a second EA.
i think u cant do anything here
"If you have no control over the originating EA"
thats the point, I cannot control the originating EA and I have not designed this EA. The only thing the second EA should do,
is to enable or disable the originating EA´s orders, if a specific condition is reached.
my problem is, to find a On/Off function for the original EA, so outgoing orders will be blocked and modified by a second EA.
What do you mean "blocked" AND "modified"?
If you mean that you wish to intercept and modify, then - yes it can be done. However, I don't think it can be done with an EA alone and if this is the case, it certainly won't be an elegant solution. You could use the 2nd EA to decide on the market circumstances and then develop another lower level application which would be called by this EA. Whilst the lower level app would have more power, it would also be more crude. Depending upon the degree of complexity you can cope with, you could write a simple app to stop the MT4 platform; or you could write a complex app to pattern match and modify the order opens on the fly.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi,
is there any possibility to control the orders from an actual running EA ?
e.g. the EA generates a BUY order with specific attributes, and i want to design another EA which denies the order from this other system ...
is that possible ?
or e.g. that there is a controlling instance which checks all orders from different EA´s, and if my own programmed EA accepts the conditions of the order, the order will be executed ...
Can I design such a EA ?