Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 19:09:59 +0000



Ascil

View Count: 974

[2014-04-23 13:15:54]
User94550 - Posts: 1
Hi,
I' m building a trading system in sierra, but I can't find the function for know if I flat or no.
What is this funciton?
Bye
[2014-04-23 14:58:47]
norvik - Posts: 22
s_SCPositionData PositionData;
sc.GetTradePosition (PositionData);

if ( PositionData.PositionQuantity == 0 ) //flat..
[2014-04-23 17:35:04]
Sierra Chart Engineering - Posts: 104368
Yes. That is the correct function.
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