Support Board
Date/Time: Sat, 10 May 2025 00:33:20 +0000
Post From: Order price off by 1 tick in replay mode (question)
[2015-12-22 21:53:16] |
onnb - Posts: 663 |
ok - I will look some more into the rounding. I'm guessing one way to see this is to use sc.RoundToTickSize and print it to a log. That should be the value you are using to set the order price, yes? something like this: sc.FormatGraphValue(sc.RoundToTickSize(sc.BaseDataIn[SC_OPEN][sc.Index]), sc.BaseGraphValueFormat).GetChars() also say that I set order.Price1 = X; then I call SellOrder(order); After the call to SellOrder, if any rounding is done by SC, will I see the rounded price in Price1? |