Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 03:51:00 +0000



Post From: Position quantity with GetTradePosition is 0 on Teton Order Routing

[2023-04-27 19:43:30]
Sierra_Chart Engineering - Posts: 17190
We cannot reproduce this and it does not make any sense why there is a problem. This position function, works in a very stable definite manner.

There is also something wrong with your code which we have corrected:
  
for (int i = sc.UpdateStartIndex; i < sc.ArraySize; i++)
{
  sgPositionQuantity[i] =static_cast <float >( pos.PositionQuantity);
}

Anytime you use this structure, before calling the sc.GetTradePosition function, reset it because you may be having left over values:

s_SCPositionData SCPositionData ;
SCPositionData = s_SCPositionData();//Reset

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, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2023-04-27 20:24:31