Login Page - Create Account

Support Board


Date/Time: Thu, 13 Mar 2025 01:10:43 +0000



How to get daily High/Low in replay?

View Count: 1221

[2015-06-19 13:36:03]
Duke - Posts: 3
sc.DailyHigh and sc.DailyLow doesnt work for replay and I would like to have the same behavior in strategy for replay and realtime.

How can I get daily high and low during replay that will work in realtime too? Thanks.
[2015-06-19 18:08:10]
Sierra Chart Engineering - Posts: 104368
These particular ACSIL variables are not supported during a replay.

You need to rely upon the Daily OHLC study and get the values from that study. Here is the documentation for that:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#UsingStudyData
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
[2015-06-19 20:42:13]
User650681 - Posts: 9
I have used a 1440 minute chart. For the daily chart replay. It worked for me :)
[2015-06-23 09:26:09]
Duke - Posts: 3
Thanks I have went with using sc.GetOHLCForDate as I am on minute timeframe.
[2022-05-24 00:20:49]
j4ytr4der_ - Posts: 946
This is an extremely old thread but I'm trying and failing to do the same thing, only I'm not using ACSIL. I'm simply trying to use the Daily OHLC study (as suggested above by SCE). It works fine live, but in replay all values are always zero regardless of periodicity. I can't get it to do anything in replay.

I've looked through the docs and all over Google but haven't found anything beyond this thread. What am I missing?
[2022-05-24 13:53:47]
John - SC Support - Posts: 38621
It should work just fine in replay. Please attach your chartbook with the relevant charts in it so we can see how you have this setup and what might be occurring. Refer to the following for how to attach a file to this thread:
https://www.sierrachart.com/index.php?page=PostingInformation.php#AttachFile
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-05-24 18:35:32]
j4ytr4der_ - Posts: 946
Oh how odd... you're right, it works fine on a new chartbook. I'll have to look into my chartbook and figure out what's going on with it. Thanks!

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

Login

Login Page - Create Account