I've been testing one of my EAs on an Ava MetaTrader demo account.
The EA opens orders with 0.5 Lots as expected, but when it tries to close an order, often the trade is split up, so it will only close 0.22 or 0.28 Lots. The rest of the trade is left open and messes up the operation of the EA.
As my EA only has 1 open order at any one time, I have got over this by closing the earliest order if there is more than 1 open order.
So problem solved easily enough.
I'm just wondering if this is unique to Ava MetaTrader as I haven't had this happen before.
I can't see any reason for it, especially on a demo account. It is the broker splitting the trade, not the EA
I can see that this may cause bigger problems with a more complicated EA
The EA opens orders with 0.5 Lots as expected, but when it tries to close an order, often the trade is split up, so it will only close 0.22 or 0.28 Lots. The rest of the trade is left open and messes up the operation of the EA.
As my EA only has 1 open order at any one time, I have got over this by closing the earliest order if there is more than 1 open order.
So problem solved easily enough.
I'm just wondering if this is unique to Ava MetaTrader as I haven't had this happen before.
I can't see any reason for it, especially on a demo account. It is the broker splitting the trade, not the EA
I can see that this may cause bigger problems with a more complicated EA
Please Do Not PM Me With Coding Enquiries