Login Page - Create Account

Support Board


Date/Time: Wed, 30 Apr 2025 07:41:53 +0000



sc.GetTotalNetProfitLossForAllSymbols() Does not work for Simulated Trading

View Count: 155

[2025-03-24 15:38:56]
rahul - Posts: 173
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: 173
Hi, Sierra Chart development team...can you please look into this
[2025-03-31 14:03:08]
Sierra_Chart Engineering - Posts: 19383
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: 173
Yes, I see the simulated trades populated in Trade Activity Log.
[2025-04-03 08:11:39]
Sierra_Chart Engineering - Posts: 19383
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: 173
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"
[2025-04-23 19:22:52]
Sierra_Chart Engineering - Posts: 19383
During a replay provide us a screenshot of the Trade Statistics for Charts tab on the Trade Activity Log.

We need to see in that screenshot, all of the rows, the symbol of each row and the trade account of each row.
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-23 19:23:29
[2025-04-23 20:09:02]
rahul - Posts: 173
I have attached all relevant pages of the Trade Activity Log.

I ran the replay on Sim1 Account, using only 1 Symbol. Once you stop the replay, the sc.GetTotalNetProfitLossForAllSymbols() value populates..... it doesn't populate during the chart replay.
imageUntitled.png / V - Attached On 2025-04-23 20:08:51 UTC - Size: 142.93 KB - 5 views

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

Login

Login Page - Create Account