Login Page - Create Account

Support Board


Date/Time: Sun, 23 Feb 2025 13:32:04 +0000



Post From: ACSIL - sc.ChangeChartReplaySpeed causes replay to reset back to bar opening time.

[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.