Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 21:16:14 +0000



Result=sc.BuyOrder/sc.SellOrder for non-Market orders

View Count: 778

[2016-05-24 22:59:37]
User754985 - Posts: 109
I have discovered by experience that if OrderType is other than the "Market", then in case order placement was successful,
the Result=sc.BuyOrder(NewTargetOrder) will show either positive OR NEGATIVE quantity of successfully submitted order.

I first found this out for OCO orders, and then Limit and Stop.

What puzzled me also is that in case OrderType=LIMIT, the successfully submitted sc.SellOrder, will generate a positive result.

What is the logic?
[2016-05-24 23:02:18]
User754985 - Posts: 109
That was in contrast to what SC manuals say

(function)
Returns: A return value > 0 indicates the order was successfully submitted. If the value is > 0, then this value indicates the quantity of the submitted order. If the return value is negative, < 0, the order submission was ignored.
[2016-05-25 03:07:42]
Sierra Chart Engineering - Posts: 104368
The documentation is correct.

If the value is negative, there has been an error. This is definitive.
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
[2016-05-25 04:13:58]
User754985 - Posts: 109
I can see orders placed, open, modified, filled/cancelled as they should...There does not seem to be an error.

This is for Stops/Limits/OCO_LIMIT_STOP...I did not check the other ones..
[2016-05-25 04:21:44]
Sierra Chart Engineering - Posts: 104368
We remain very adamant that the documentation is correct.

We verified the code and determined that it is correct.
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: 2016-05-25 04:22:25

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

Login

Login Page - Create Account