Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 00:40:08 +0000



s_SCTradeOrder does not indicate short or cover

View Count: 1647

[2013-08-21 23:03:29]
hairyMug - Posts: 31
When using the GetOrderByOrderID , in an ACSIL function, there seems to be no way to see if it is a short position.
Is there another way to determine if the curent position is a short position?
Date Time Of Last Edit: 2013-08-22 21:57:24
[2013-08-23 02:44:19]
Sierra Chart Engineering - Posts: 104368
You need to use this function:

http://www.sierrachart.com/index.php?l=doc/doc_ACSILTrading.html#scGetPosition
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
[2013-08-23 09:13:36]
hairyMug - Posts: 31
I have been using this function but s_SCPositionData structure has no obvious member to indicate what type of trade it is; long or short...
[2013-08-23 10:09:48]
Sierra Chart Engineering - Posts: 104368
From documentation:


[Type: integer] PositionQuantity

The quantity of the current Trade Position as shown on Trade >> Trade Orders and Positions window. A positive quantity represents a Long position and a negative quantity represents a Short position.

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

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

Login

Login Page - Create Account