Support Board
Date/Time: Wed, 17 Jun 2026 07:52:41 +0000
[Programming Help] - ACSIL best practice for cross-chart study values/time alignment during Replay
View Count: 7
| [2026-06-17 05:37:08] |
| User785536 - Posts: 12 |
|
Hello Sierra Chart Support, I am building an ACSIL-based automated trading system, but I am currently in a no-trade validation/replay stage. No orders are being placed yet. The architecture uses multiple charts: * Chart #1: structure/TPO-related studies * Chart #2: Numbers Bars / footprint chart * Chart #3: main execution/runtime chart The detector study is attached to Chart #3. It needs to read values from: * studies on Chart #3, * footprint/Numbers Bars Calculated Values on Chart #2, * structure-related studies on Chart #1. Before I move from no-trade validation toward automated order logic, I want to confirm the proper ACSIL design. Main question: What is the recommended Sierra Chart / ACSIL method for reading study values from other charts with different bar periods during replay and live updating? Specifics: 1. For reading another study on the same chart, is sc.GetStudyArrayUsingID() the correct method? 2. For reading a study on another chart, should I use the destination chart index, the source chart latest index, or should I time-align using SCDateTime / sc.BaseDateTimeIn[]? 3. If Chart #3 is a 2-minute chart, Chart #2 is a range/Numbers Bars footprint chart, and Chart #1 is a TPO/structure chart, what is the safest way to align the values so the detector is evaluating the correct event time? 4. During Chart Replay, what is the recommended way to log study state at or near a specific event time? Should a witness logger append rows during replay using sc.BaseDateTimeIn[sc.Index]? 5. For a future automated trading system, is it better for a provider study to expose required state values through subgraphs/persistent variables, or is reading/writing CSV files during replay/live update acceptable only for research/debugging? The goal is to avoid building the trading layer on top of incorrect chart-index or cross-chart alignment assumptions. Thank you. |
To post a message in this thread, you need to log in with your Sierra Chart account:
