Support Board
Date/Time: Sun, 08 Sep 2024 00:27:12 +0000
[Programming Help] - Reference Chart Base Data Incomplete
View Count: 109
[2024-07-14 20:43:24] |
Gradient - Posts: 68 |
Hi, I'm using sc.GetChartBaseData() to retrieve the base data and studies from another chart. I noticed for some days (i.e. the initial K days in period) the data from the reference chart appears on the primary chart. However, after a certain date, the data from the reference chart no longer appears. Can someone advise as to why this is happening? Thanks |
[2024-07-14 22:03:58] |
Gradient - Posts: 68 |
I also noticed that the data over the period in which data is retrieved, isn't correct. For example, in the attached screenshot, the reference chart(#1) is on the left, and the primary chart(#2) on the right. These are the only two charts in the chartbook. The study is attempting to retrieve the prior day's high and prior day's low for the 15th. The frame of the primary chart is on the 16th which indicates that the prior high should be 5213.50 and prior low should be 5095.75 The study is showing an incorrect prior high and low. How is this possible when there are only two charts in the chartbook? |
Attachment Deleted. ![]() |
[2024-07-14 22:45:36] |
Sierra_Chart Engineering - Posts: 16292 |
This is a programming help question, and would require a very in depth code analysis and debugging. This is just not within the scope of our support at all. May be a user can help you, but they have to do the same thing. It is important to understand when getting Arrays from another chart, you have to find the corresponding bar index. More information about this is here: Referencing Other Time Frames and Symbols When Using the ACSIL: Accessing Correct Array Indexes in Other Chart Arrays 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 Date Time Of Last Edit: 2024-07-14 22:46:02
|
[2024-07-14 23:27:55] |
Gradient - Posts: 68 |
I've solved the issue. Instead of referencing a different chart, I added the OHLC Indicator and referenced that study from the current chart. Thanks. |
To post a message in this thread, you need to log in with your Sierra Chart account: