Login Page - Create Account

Support Board

Date/Time: Fri, 17 Sep 2021 03:40:08 +0000

Post From: IsReplayRunning() incorrect on last bar

[2021-07-23 09:13:24]
Sierra Chart Engineering - Posts: 97762
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:


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:

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