Support Board
Date/Time: Sun, 23 Feb 2025 13:57:07 +0000
ACSIL - sc.ChangeChartReplaySpeed causes replay to reset back to bar opening time.
View Count: 587
[2021-02-12 07:49:39] |
ChrisM - Posts: 2 |
Hi, When replaying a chart with a custom study that calls sc.ChangeChartReplaySpeed(sc.ChartNumber, newSpeed) and the Replay Chart Control Panel is open, chart replay starts but the time immediately resets back to the beginning of the bar. This appears to happen when the speed on the control panel is different to the new speed being set by ChangeChartReplaySpeed. The control panel and ChangeChartReplaySpeed appear to try keep overriding each other. If the Replay Chart Control Panel is closed, the replay will start playing, however when sc.ChangeChartReplaySpeed(sc.ChartNumber, newSpeed) is called it will still reset back to the beginning of the bar. If the logic condition calling sc.ChangeChartReplaySpeed matches on each bar, the replay will reset to the beginning of the bar, hit the logic again, and continue resetting. Using SC version 2226. |
[2021-02-12 10:55:22] |
|
We are looking this over and we will make sure the speed is updated on the replay control panel but we do not see how this is even technically possible: but the time immediately resets back to the beginning of the bar.
How do you come to this conclusion? 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-02-12 18:51:01] |
ChrisM - Posts: 2 |
By adding a CountDown Timer to the chart (set to seconds only and realtime). On 5 min chart, start replay with speed 5 at time 08:50, custom study changing speed to 10: sc.ChangeChartReplaySpeed(sc.ChartNumber, 10); Time starts at 299s goes down a few seconds and resets back to 299s. Have done some further tests: On a 5 min chart, start replay at time 08:49 and it starts at 59s goes down a few seconds and resets back to 59s. On a 5 min chart, start replay at time 08:48 and it starts at 119s goes down a few seconds and resets back to 119s. On a 5 min chart, start replay at time 08:47 and it starts at 179s goes down a few seconds and resets back to 179s. |
To post a message in this thread, you need to log in with your Sierra Chart account: