Support Board
Date/Time: Tue, 04 Nov 2025 18:18:55 +0000
[Programming Help] - saving intraday data from live feeding
View Count: 174
| [2025-09-17 13:15:13] |
| bskogz12 - Posts: 41 |
|
I seem to be having an issue saving data from live feeding for my custom studies, i updated sierra charts and now every time i do a change on the chart that requires it to reload all the data from the previous session deletes and only the current session remains
|
| [2025-09-17 16:00:28] |
| John - SC Support - Posts: 42761 |
|
It sounds like you have the Number of Days to Load for your chart set to 1. Change this to however many days you actually want to be able to view at one time. Refer to the following: Chart Settings: Days to Load for Intraday Chart Data Type (Chart >> Chart Settings >> Data Limiting >> Load Data Limiting Method: Days to Load) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
| [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? |
To post a message in this thread, you need to log in with your Sierra Chart account:
