The chart I am viewing is running a range bar chart and I need to calculate the previous 7 day Average Daily Range.
Ini Initialize I added:
Add(PeriodType.Minute, 1440); // Use for ePrvADR calculation 1440m = 1 Day
For Debug purposes in OnBarUpdate I have
Print("PrvADR: " + ePrvADR(Bars[1],2) );
And the Bars[1] is not the right way to pass in the IDataSeries.
How do I pass the 1440m bars data into this function?
Thank you
Comment