Login Page - Create Account

Support Board


Date/Time: Sat, 18 Jan 2025 19:39:03 +0000



Post From: List of all open Positions?

[2018-02-20 23:59:15]
Sierra Chart Engineering - Posts: 104368
This is now available in prerelease 1705. The function is:
int sc.GetTradePositionByIndex(s_SCPositionData& r_PositionData, int Index);

The function returns 1 if the Position at Index was found and the data is put into r_PositionData. Index is zero-based.

Increment Index starting from zero with each call and when the function returns 0, then you have received all of the available Trade Positions. Only non-simulated Trade Positions are supported.

The Trade Positions the sc.GetTradePositionByIndex function accesses are what are listed in Trade >> Trade Orders and Positions >> Positions.
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-02-21 18:30:02