Login Page - Create Account

Support Board


Date/Time: Sat, 26 Sep 2026 08:48:35 +0000



Post From: GetTradePosition() reports non-flat position with zero corresponding activity in Trade Act

[2026-08-13 15:35:11]
Sierra_Chart Engineering - Posts: 24976
There must be at least one fill loaded in the chart, which is causing this position:
3. sc.GetTradePosition().PositionQuantity continues to read -1

Look at the Trade Statistics for Charts tab of the Trade Activity Log:
Trade Activity Log: Trade Statistics for Charts (Chart Stats) Tab

Do you see a row there for the particular chart containing the study, calling this function?

You will need to make sure this option is enabled:
Chart Settings >> Trading >> General >> Include Chart Trade List in Trade Statistics for Charts Window : Yes

The field you want to look at on that tab at is:
Order Fills Start Date-Time
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: 2026-08-13 15:36:00