Attachment Rounding_error_OK_Optim.sqx added
I confirm that there are some problems, I'll look at it.
Status changed from Waiting for information to Refused
Attachment Rounding_error_OK_Optim2.sqx added
I found the problem with your strategy - there is no maximum limit to which the Lot variable can grow.
You multiply it with Lot_nasobic in tab Loty, and this is called over and over repeatedly, and Lot variable keeps on growing.
I see that the trades are opening with size of millions of lots.
You probably have to put some maximum there.
Attachment Rounding_error_Bar_open_light.sqx added
How did you get different results for them?
I also noticed that the backtests of these strategies is very slow, the problem is in MarketPositionsCount() - this function is slow, and you call it in almost every tab.
It would be much faster to call it just once, store its value to a variable and then compare the variable in all the other tabs.