code like below:
Code: Select all
buy 1000 shares next bar 25.55 limit;
If Getappinfo(Aicalcreason) = calcreason_orderfilled Then
Begin
prc = NumToStr(FilledOrderPrice, 2) + " ";
lots = NumToStr(FilledOrderContracts, 0) + " ";
print(prc, lots);
End;
But Sometimes it prints "0.00, 1000". the filled price is 0 but the price in order tracker is 25.55.
Why is that?