Support Board
Date/Time: Wed, 07 May 2025 14:49:24 +0000
Replay divergence for multiple charts
View Count: 183
[2024-11-22 15:40:51] |
skalaydzhiyski - Posts: 71 |
Hello, I wanted to replay multiple charts in sync, but when doing it using Chartbook or Link Number replay I can only replay them with 1 second set and that is too slow. My solution to that is a custom study I wrote with ACSIL which uses sc.StartChartReplay() to trigger all charts separately with a for loop and this gives me exactly what I want - I can have multiple charts replaying with 120x speed and everything is working as expected. I was concerned that charts might diverge so I wrote another ACSIL study to track the divergence between 2 charts using sc.LatestDateTimeForLastBar from the current chart the study is applied on and a persistent SCDateTime& read from another chart which has the corresponding value for sc.LatestDateTimeForLastBar. This seems to do the trick more or less, but I am constantly seeing divergence of about 300ms even though when I look at the charts this doesn't seem to be true. I think my approach is a bit overengineered at this point so I wanted to reach out to you and ask if you can share a better way to track if 2 charts' replays are in sync ? Or even better - a better of doing fast replays of multiple charts. All the best, Date Time Of Last Edit: 2024-11-22 15:44:54
|
[2024-11-25 22:46:43] |
Sierra_Chart Engineering - Posts: 19468 |
We do not know what is meant by this: I can only replay them with 1 second set
A timing difference of 300 ms seems reasonable when replaying multiple charts because these charts are all updated independently and there is time to calculate and draw them. 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 |
[2024-11-25 23:05:39] |
skalaydzhiyski - Posts: 71 |
I think I sorted my problem now, I have an acsil study with 4 buttons for Start Stop Pause and Resume, every one of the buttons does what is says on all charts in a for loop. to get best sync - just tick the "start paused" option in the replay window and when all charts have their data loaded - press Resume. Works like a charm. Just sharing this here in case anyone is facing the same problem Date Time Of Last Edit: 2024-11-25 23:06:18
|
To post a message in this thread, you need to log in with your Sierra Chart account: