Step to reproduce the problem
1) I have a method to calculate price by Tick. TickSize is 0.1 in M2K instrument
private double CalcPrice(int tick) { return tick * TickSize; }
2) I call EnterLongLimit
var limitPrice = CalcPrice(tick); // 1575.6
var order EnterLongLimit(0, true, quantity, limitPrice, signalName);
Print(limitPrice); //1575.6
Print(order.LimitPrice); //1575.6
Print(price==order.limitPrice); false !!!
My work has been cut out to grab the bug. it looks the result have some decimal To fix that I need to Round the result in every compare. It doesn't happen on any numbers and very difficult to reproduce.
Comment