Login Page - Create Account

Support Board


Date/Time: Sun, 25 Jul 2021 02:34:36 +0000



IsReplayRunning() incorrect on last bar

[2021-06-30 17:42:23]
User660727 - Posts: 17 | Ending Date: 2021-11-03
Summary: IsReplayRunning() returns false on the last bar of a replay. I would expect a value of true.

Connection Status: Disconnected
Manual Replay settings:
Mode: Accurate
Use Start Date-Time: true
Speed: 200000
Skip Empty Periods: true

Problem: I need a reliable way to determine that I am backtesting. Is there is another method/property to determine this?
[2021-07-05 08:47:53]
Sierra Chart Engineering - Posts: 96917 | Ending Date: 2022-04-10
The value of that variable must be accurate. So what you must be seeing, is the replay has ended when it is false.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2021-07-07 16:52:11]
User660727 - Posts: 17 | Ending Date: 2021-11-03
Below is a log showing all study calls during a replay from 7/7/21 10:55
The last tick of available data is at 10:59:14
The study is set for manual looping
The chart is configured for 1 minute bars
Sierra Chart is disconnected
Attached are the replay settings and the last tick of data for the symbol

As you can see:
IsReplayRunning is turned off starting at 10:58. Shouldn't this be set thru the last bar at 10:59?
GetReplayHasFinishedStatus is set at 10:58. Shouldn't this be set at the 10:59 bar?
The last bar of the replay (10:59) is called twice but with both flags cleared. Why is the last bar not included in the replay?


IsReplayRunning:0 GetReplayHasFinishedStatus:0 UpdateStartIndex:10,494 2021-07-7 10:59:00
IsReplayRunning:0 GetReplayHasFinishedStatus:0 UpdateStartIndex:0 2021-06-27 17:00:00
IsReplayRunning:0 GetReplayHasFinishedStatus:0 UpdateStartIndex:10,494 2021-07-7 10:59:00
IsReplayRunning:1 GetReplayHasFinishedStatus:0 UpdateStartIndex:0 2021-06-27 17:00:00
IsReplayRunning:1 GetReplayHasFinishedStatus:0 UpdateStartIndex:10,490 2021-07-7 10:55:00
IsReplayRunning:1 GetReplayHasFinishedStatus:0 UpdateStartIndex:10,491 2021-07-7 10:56:00
IsReplayRunning:1 GetReplayHasFinishedStatus:0 UpdateStartIndex:10,492 2021-07-7 10:57:00
IsReplayRunning:0 GetReplayHasFinishedStatus:1 UpdateStartIndex:10,493 2021-07-7 10:58:00
IsReplayRunning:0 GetReplayHasFinishedStatus:0 UpdateStartIndex:10,494 2021-07-7 10:59:00
IsReplayRunning:0 GetReplayHasFinishedStatus:0 UpdateStartIndex:10,494 2021-07-7 10:59:00


imagereplay.png / V - Attached On 2021-07-07 16:45:01 UTC - Size: 24.89 KB - 13 views
imagelast tick.png / V - Attached On 2021-07-07 16:45:10 UTC - Size: 26.24 KB - 13 views
[2021-07-08 08:49:13]
Sierra_Chart Engineering - Posts: 1672 | Ending Date: 2021-09-29
We have to look this over, but it depends actually upon when the study function is called in relation to the data read from the Intraday data file.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation
[2021-07-12 23:44:17]
User660727 - Posts: 17 | Ending Date: 2021-11-03
Any update on this? If this is not a bug, please explain why not. If it is, please acknowledge.

Disappointing that you don't have a process to close tickets and are willing to simply leave them unresolved
[2021-07-22 09:20:14]
Sierra_Chart Engineering - Posts: 1672 | Ending Date: 2021-09-29
We have not had time to get to this yet. We expect to do it this week.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation
[2021-07-23 09:13:24]
Sierra Chart Engineering - Posts: 96917 | Ending Date: 2022-04-10
The problem is not reproducible at all. It is fairly involved to go through these tests, and this is why it was set aside until we had a chance.

These tests were done with Accurate Trading System Back test Mode:

https://www.sierrachart.com/index.php?page=doc/ReplayChart.html#ReplayControl_ReplayMode

This is with automatic looping:
Chart: NQU21-CME[M] 10 Min #1 | Study: Test Function 2 | FinishedStatus. Index=212. ArraySize=213 | 2021-07-23 05:12:51.234


This is with manual looping:
Chart: NQU21-CME[M] 10 Min #1 | Study: Test Function 7 | FinishedStatus. Index=202. ArraySize=203 | 2021-07-23 03:30:30.977


These messages occur just once at the end of the replay. And also understand the indexes are zero-based and will always have a value 1 less compared to the array size but they occur on the final bar.

  int FinishedStatus = sc.GetReplayHasFinishedStatus();

  if (FinishedStatus)
  {
    SCString Message;
    Message.Format("FinishedStatus. Index=%d. ArraySize=%d", sc.Index, sc.ArraySize);
    sc.AddMessageToLog(Message, 0);
  }

Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2021-07-23 09:14:19

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

Login

Login Page - Create Account