Support Board
Date/Time: Sat, 01 Nov 2025 01:24:41 +0000
Post From: sc.BuyOrder place order that the price is rounded to integer
| [2018-03-05 13:44:05] |
| User841591 - Posts: 42 |
|
I use sc.BuyOrder(NewOrder), sc.SellOrder(NewOrder) to place the orders for a different symbol other than the chart. It works fine in previous version 1695. After I update to the current version 1705, I find the sc.BuyOrder(NewOrder), sc.SellOrder(NewOrder) will round the NewOrder.Price1 to the integer to place. For example, I hardcode NewOrder.Price1=2683.25. I find the price placed to the broker is 2683 instead of 2683.25. Pls advise if some setting is required for new version sc.BuyOrder(NewOrder), sc.SellOrder(NewOrder).
|
