Login Page - Create Account

Support Board


Date/Time: Tue, 04 Nov 2025 21:03:18 +0000



Post From: saving intraday data from live feeding

[2025-09-27 04:07:39]
bskogz12 - Posts: 41
The specific issue is with custom studies that use Time and Sales data (sc.GetTimeAndSales() and sc.GetTimeSalesArrayIndexesForBarIndex()). These studies calculate correctly during live market hours, but when I reload the chart or restart Sierra Chart, only the current session's calculated values remain - all previously calculated values from prior to the reload disappear.

I have a custom study that counts ask transactions using the Time and Sales array. The logic works perfectly in real-time, but the calculated results don't persist. I'm using basic sc.AutoLoop = 1 and storing results in sc.Subgraph[0][sc.Index].
Question: Is there a specific Sierra Chart setting or code pattern required to persist custom study calculations that are derived from Time and Sales data? The underlying T&S data isn't available to recalculate previous sessions, but I need the calculated results to be saved in the chart file.
I have older custom studies (from previous SC versions) that successfully persisted similar Time and Sales derived calculations, so I believe this should be possible. What am I missing in the current version?