Support Board
Date/Time: Thu, 28 Nov 2024 23:45:38 +0000
ChartsToReplay setting within n_ACSIL::s_ChartReplayParameters not working
View Count: 386
[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: 17210 |
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: 17210 |
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: