Login Page - Create Account

Support Board


Date/Time: Tue, 15 Apr 2025 14:34:43 +0000



sc.GetTotalNetProfitLossForAllSymbols() Does not work for Simulated Trading

View Count: 111

[2025-03-24 15:38:56]
rahul - Posts: 172
Sierra Chart Dev team,

The sc.GetTotalNetProfitLossForAllSymbols() is very valuable when calculating P/L across all symbols.

However, this function doesn't work with simulated trading. Could you please look into this.
[2025-03-30 13:48:59]
rahul - Posts: 172
Hi, Sierra Chart development team...can you please look into this
[2025-03-31 14:03:08]
Sierra_Chart Engineering - Posts: 19228
Do you see rows in the Trade Statistics for Charts tab for simulated symbols:
Trade Activity Log

That function will use data from that tab. We are going to be looking into this as well to confirm.
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
[2025-03-31 14:32:12]
rahul - Posts: 172
Yes, I see the simulated trades populated in Trade Activity Log.
[2025-04-03 08:11:39]
Sierra_Chart Engineering - Posts: 19228
Specifically in the Trade Statistics for Charts tab. Do you see rows there for simulated symbols:
Trade Activity Log: Trade Statistics for Charts (Chart Stats) Tab

Are you performing a chart replay?

This data originates from the Trade Statistics for Charts tab and you have to be sure that all of the charts you want data from, have the same trade account as the chart containing the study which is calling the 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, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2025-04-03 08:24:32
[2025-04-03 11:19:41]
rahul - Posts: 172
Yes, I am performing Chart Replay.

All, s_SCPositionData structure members populate correctly in chart replay. This data also originates from Trade Statistics tab.

However, it doesn't work for sc.GetTotalNetProfitLossForAllSymbols(). This shows 0.

If you load your scsf_ProfitLossTextStudy study, that too shows 0 for ""Show Net Profit/Loss for All Symbols for Trade Account"

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

Login

Login Page - Create Account