Re: [Array out of range at OnTradeDetector()](/forum/topic/6892/array-out-of-range-at-ontradedetector)
-
Re: Array out of range at OnTradeDetector()
I have had the same problem as yours. My workaround is to delete the whole "if" block where this problem appears. It works for me since I am not using anyway the functionalities that are included in it:
"Position reversed", "Position modified SL and/or TP" and "Check position increment/decrement".
I delete the lines
starting from "if ((lastPositionsTotal == positions_total) && (lastOrdersTotal == orders_total))"
down to (but not including) "BuildPositionsList(EGV_PositionsList0);".It would be very nice, if the Admin fixes the issue, so that we don't have to manually edit the code and use the stock MetaEditor, as (this is my other problem) the stock MetaEditor almost doubles the size of the .mql5 file when compiling. Strangely the FXdreema compiler produces almost equal .mql5 and .ex5 size files...
-
Another question for real programmers. Anyone here?

-
please how to solve error of start backtest and not working online. error is 'Array out of range in '76907-4462.mq5' (8117, 46)'