Metatrader Ea Fixes

I have an EA that needs the following fixes:

1) The re-ordering of trades so that all trades on a specific currency pair are closed before new reversal trades are opened on the same pair. The system will frequently attempt to reverse the position on trades and this results in a “Hedging is Prohibited” error. Trade closing functions should run before trade opening functions.

2) The re-ordering of trades so that multiple trades placed at the same time are ordered in such a way as to prevent the “Trade Context is Busy” error. Attempting to process multiple trades simultaneously results in this error. Trades must be queued in such a way as to prevent this from happening. Entry timing is not critical, so it would be acceptable for a trade to be delayed 2 to 3 minutes (or for the system to check to see if the trade has been posted, then start processing the next trade). Several magic numbers may be used on the same account on the same pair, which must be taken into consideration when ordering trades.

Leave a Reply

Your email address will not be published. Required fields are marked *