Support Board
Date/Time: Tue, 21 Jul 2026 20:34:24 +0000
[Programming Help] - ChartsToReplay setting within n_ACSIL::s_ChartReplayParameters not working
View Count: 783
| [2023-03-16 17:03:57] |
| User864728 - Posts: 4 |
|
ChartsToReplay setting within n_ACSIL::s_ChartReplayParameters structure currently doesn't seem to have any effect. Could this setting be activated so that users can programatically switch between Single Chart replay and other replay modes? |
| [2023-03-17 14:37:27] |
| Sierra_Chart Engineering - Posts: 24288 |
|
Update to the current version and let us know how you have it set.
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 |
| [2023-03-17 15:33:50] |
| User864728 - Posts: 4 |
|
I've updated to v2486 and when I use the below code, 'Charts to Replay' setting is the only one that doesn't change when I trigger a replay through my custom study - so if I forget to change this setting from 'All Charts in Chartbook' to 'Single Chart', I've wasted time running a test since the results produced with the incorrect setting are inaccurate. SCDateTime ReplayStartDateTime = sc.BaseDateTimeIn[0]; n_ACSIL::s_ChartReplayParameters ChartReplayParameters; ChartReplayParameters.ChartNumber = sc.ChartNumber; ChartReplayParameters.ReplaySpeed = 100000; ChartReplayParameters.StartDateTime = ReplayStartDateTime; ChartReplayParameters.SkipEmptyPeriods = 1; ChartReplayParameters.ReplayMode = n_ACSIL::ChartReplayModeEnum::REPLAY_MODE_ACCURATE_TRADING_SYSTEM_BACK_TEST; ChartReplayParameters.ChartsToReplay = n_ACSIL::ChartsToReplayEnum::CHARTS_TO_REPLAY_SINGLE_CHART; ChartReplayParameters.ClearExistingTradeSimulationDataForSymbolAndTradeAccount = 1; sc.StartChartReplayNew(ChartReplayParameters); |
| [2023-03-18 07:51:41] |
| Sierra_Chart Engineering - Posts: 24288 |
|
This code does exactly what you are specifying and only a single chart is replayed but the user interface of the replay window does not update. However, that is not relevant.
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 |
| [2026-07-21 14:54:08] |
| User907968 - Posts: 881 |
|
Sorry to dredge up this old thread but I am working with these commands today and notice some strange behavior. ChangeChartReplaySpeed/StopChartReplay don't consistently respect ChartsToReplay after StartChartReplayNew, behavior instead appears to track the Replay Control window UI state. `StartChartReplayNew` with `ChartsToReplay = CHARTS_TO_REPLAY_ALL_CHARTS_IN_CHARTBOOK` correctly starts every chart in the chartbook together, regardless of the Replay Control window's current "Charts to Replay" dropdown. But afterward, `ChangeChartReplaySpeed(ChartNumber, Speed)` and `StopChartReplay(ChartNumber)` don't reliably apply to just `ChartNumber` or to the whole group, their effect instead tracks the Replay Control window's UI state, which ACSIL has no way to read or set. Observed, six charts one chartbook, mixed bar types - Replay Window = "Single Chart": `ChangeChartReplaySpeed` / `StopChartReplay' on chart 1 only chart 1 changes. - Replay Window = "All Charts in Chartbook": same calls every chart changes. - Replay Window = "Single Chart" (different trial): same call chart 1 changes, plus a chart that wasn't targeted, coinciding with that chart having UI focus at the moment the window redrew. So it would seem that the UI setting directly affects the behavior of the various function calls. I noted that other calls to change replay speed or replay mode (at start) actually trigger the chart replay window to be updated. |
To post a message in this thread, you need to log in with your Sierra Chart account:
