I have an EA that I like but want an additional feature. I want to cancel or not allow any pending orders that are generated by the EA if X condition exists. Is it possible to create another EA to do this and run two EA’s simultaneously? I ask because the EA I like is protected and I respect the developers wishes.
I think you would run into the problem where the limiting EA would consistently lose the spread. It would also not stop the trading EA from opening a new trade and repeating the spread loss process again.
The only way (I think) I could see it working is by running the trading EA and and the limiting EA on a demo account and have the limiting EA write all “good” trades to a file. On your live account, have an EA that pulls up that file and trades based off that somehow…
But that is a bit above my skill level.
LethalXxXDose
Yes, you can create a trade linked to each EA by a code.
You need to post over at the MQL4 forum, you will find some examples.
This is technically possible but it depends on how the protected EA is coded. It’s very likely the first EA will flip out and open the trade again if the second EA tries to cancel it.
It might work, but you won’t know until you write the second EA and give it a try.