// Calculate the range of the average daily range over the past day. AverageDailyRange.Set(CurrentDayOHL().CurrentHigh[0] - CurrentDayOHL().CurrentLow[0]);
// Print the current SMA 7 period Average Daily Range . DrawTextFixed("AverageDailyRange1", "Average Daily Range: " + Instrument.MasterInstrument.Round2TickSize(SMA(AverageDailyRange, 7)[0]), TextPosition.TopLeft, Color.Black, new Font("Arial", 8), Color.Transparent, Color.Transparent, 1);
Is there a different way just to calculate the average daily range from the days high to the days low for the past 7 days (market hours only)? I seemed to be getting skewed numbers when I check it out against manually calculated figures over the daily high to daily low on my charts over the past 7 days. I am using tick charts if that helps... I need it to be dynamic so that it is not spitting out a fixed number each session, it needs to change as the market moves taking in the current days high and low as well (when they are made)..
Comment