Login Page - Create Account

Support Board


Date/Time: Tue, 14 May 2024 01:57:57 +0000



Document GetReplayHasFinishedStatus()

View Count: 426

[2021-06-30 18:30:03]
User660727 - Posts: 50
There is currently no documentation for GetReplayHasFinishedStatus(), included the return value. How is this different from IsReplayRunning()?
[2021-07-04 10:42:17]
Sierra Chart Engineering - Posts: 104368
This is now documented here:
sc.GetReplayHasFinishedStatus()
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-07-07 16:20:00]
User660727 - Posts: 50
When GetReplayHasFinishedStatus() returns 1, is the current bar the last bar of replay or was the previous bar the last bar?
How does this differ from simply waiting for IsReplayRunning() to return 0?

My testing shows the following (version 2284):

LastBar-2: IsReplayRunning=1,GetReplayHasFinishedStatus=0
LastBar-1: IsReplayRunning=0,GetReplayHasFinishedStatus=1
LastBar : IsReplayRunning=0,GetReplayHasFinishedStatus=0
[2021-07-08 00:53:29]
Sierra Chart Engineering - Posts: 104368
If the replay has finished all the way to the end, it would have ended on the last tick of the last bar.

Otherwise, it would not be known where the replay ended.
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-07-08 01:45:35]
User660727 - Posts: 50
I opened another ticket reporting the bug: IsReplayRunning() incorrect on last bar

Focusing on the documentation, it is unclear from the documentation (to me) what GetReplayHasFinishedStatus() returning 1 means. Does it mean the current bar is the last bar of replay or that the previous bar was the last bar?
Date Time Of Last Edit: 2021-07-08 01:45:47

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account