Login Page - Create Account

Support Board


Date/Time: Tue, 15 Apr 2025 12:27:59 +0000



sc.LatestDateTimeForLastBar sometimes 1 minute off during Replay

View Count: 29

[2025-04-13 19:15:34]
ATEX - Posts: 25
Hi,


When using sc.LatestDateTimeForLastBar during a bar replay, I sometimes get values that are off by exactly 1 minute.

Printing the SCDateTime variable to the message log looks like this:


2025-04-13 14:12:32.962 | Chart: Replay 1.00X: ESM25 [CV][M] 100 Trades #1 | Study: TrailingVolume | 2025-04-11 08:34:00.685 | Number times message added: 1
2025-04-13 14:12:32.983 | Chart: Replay 1.00X: ESM25 [CV][M] 100 Trades #1 | Study: TrailingVolume | 2025-04-11 08:34:00.702 | Number times message added: 4
2025-04-13 14:12:32.984 | Chart: Replay 1.00X: ESM25 [CV][M] 100 Trades #1 | Study: TrailingVolume | 2025-04-11 08:33:00.702
2025-04-13 14:12:33.017 | Chart: Replay 1.00X: ESM25 [CV][M] 100 Trades #1 | Study: TrailingVolume | 2025-04-11 08:34:00.702
2025-04-13 14:12:33.017 | Chart: Replay 1.00X: ESM25 [CV][M] 100 Trades #1 | Study: TrailingVolume | 2025-04-11 08:34:00.705 | Number times message added: 1

Where the 3rd value is off by 1 minute.

Is there a way for me to solve this? I am using 100 Tick charts and my Intraday Data Storage Time Unit is 1 Tick. My service is Trading Evaluator - Delayed.


Best regards,
A
[2025-04-15 06:29:00]
Sierra_Chart Engineering - Posts: 19226
We are not sure how you are concluding, this is off by one minute. It is unlikely there is any problem.
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

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

Login

Login Page - Create Account