Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 15:56:46 +0000



Post From: Referencing BaseData from a Daily Chart

[2015-08-15 21:56:15]
Sierra Chart Engineering - Posts: 104368
There is no need to provide the details given in post #3. This kind of information is not needed for the scope of our support and it does not mean anything to someone who did not do the programming.

We are only looking at the code for any obvious errors for referencing the daily chart.

This is the problem:
float PrevDayHigh = PreviousDayHigh[sc.Index - 1];

You must use the array size of the daily chart array. So this needs to be:
float PrevDayHigh = PreviousDayHigh[PreviousDayHigh.GetArraySize() - 2];



We have explained this here:
https://www.sierrachart.com/index.php?page=doc/doc_ACSILRefOtherTimeFrames.php#AccessingCorrectArrayIndexes
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
Date Time Of Last Edit: 2015-08-15 21:56:38