Login Page - Create Account

Support Board


Date/Time: Sat, 08 Nov 2025 08:01:18 +0000



Post From: Tracking multi-day P/L and other trading stats

[2025-10-28 07:05:59]
bozo_j - Posts: 31
Hi guys,

I'm writing SC bots and would like to have good stats on their financial performance. It is easy with intra-day trades as
sc.GetTradeStatisticsForSymbolV2()
can fetch them and then I can make various decisions like stopping further trades if the Max Daily Loss is reached, get a Win Rate etc.

The issue is that I also have trades which span across days (or at least end of one trading day and start of another) and cannot track their performance using SC built-in methods, AFAIK. Additionally, if Sierra is for whatever reason restarted, I would loose all the stats, and bot could theoretically continue trading although it went over Max Daily Loss set in its configuration before the restart.

Can you please provide some ideas on how you would go about tracking multi-day financial performance? Do I have to embed SQLite database and track it myself manually or do something similar where the data of each trade is written to disk, to be analysed later by some means, or is there something which is maybe easier, some Study which already takes care of this and is exporting this data for the other studies to use? Maybe I am missing something obvious?

Thank you in advance for any ideas!
Date Time Of Last Edit: 2025-10-28 07:13:39