Backtester Bug when placing Orders...

 
When using 'Ordersend' to place orders, MT will often when opening for example, order #231, open #231 then immediately open order #232, reporting this ticket number to the calling subroutine. Note that while order #231 is visible in the 'Results' window, it is not displayed on the chart if in Visual mode.

This can results in dozens of 'orphan' orders being opened unwittingly. Lets hope this is confined to the Backtester...
 
When using 'Ordersend' to place orders, MT will often when opening for example, order #231, open #231 then immediately open order #232, reporting this ticket number to the calling subroutine.

When using 'Ordersend' to place orders, EA will often when opening for example, order #231, open #231 then immediately open order #232, reporting this ticket number to the calling subroutine.

The tester works just fine.
 
 
It certainly does not - check out the attached pic. (scroll down)

why to bother if you don't even bother to put the pic right here.


Nine orders are opened in total, first 4 are closed out, then another 4 which should leave 1 remaining open.

This is not the case - orders #5, #10 and #11 are open. #5 was correctly opened. orders #10 and #11 were opened incorrectly when the last 4 orders were closed - there are no trade arrows for these two and they have been assigned the opening prices of the previously closed orders #6 and #7.

This is clearly a bug.


Whatever happens happens in your EA. This is clearly a bug in it.
My words are as clearly proven as yours.
 
You were correct... :)
Reason: