Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 04:17:29 +0000



[Programming Help] - sc.BuyOrder place order that the price is rounded to integer

View Count: 723

[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).
[2018-03-05 19:49:21]
Sierra Chart Engineering - Posts: 104368
What is the symbol of the chart the order is submitted from?

And what is the symbol that you are submitting the order for?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-03-05 19:49:31
[2018-03-06 04:04:57]
Sierra Chart Engineering - Posts: 104368
Disregard the prior question. We now see the reason for the problem. We are resolving this now in version 1712.

The tick size of the order was not being set before the order prices were being set. This is due to some recent changes but is now resolved.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-03-06 07:00:13]
User841591 - Posts: 42
The Chart Symbol is F.US.GCEJ18 (Data Vendor AMP)
The other Symbol is ES-201803-GLOBEX (Trade Vendor IB)
In fact, I can repeat this issue with other combination of Symbols.
[2018-03-06 08:06:12]
Sierra Chart Engineering - Posts: 104368
OK this makes sense. This is resolved in version 1712.

Update following the instructions here:
Software Download: Fast Update
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-03-06 08:06:18

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account