int avgDays = 5;
double avgRange = 0;
if (CurrentDayOHL().CurrentHigh[0] != null && CurrentDayOHL().CurrentLow[0] != null) {
avgRange += CurrentDayOHL().CurrentHigh[0] - CurrentDayOHL().CurrentLow[0];
}
else avgDays =-1;
if (Bars.GetSessionBar(1).High != null && Bars.GetSessionBar(1).Low != null) {
avgRange += (Bars.GetSessionBar(1).High - Bars.GetSessionBar(1).Low);
}
else avgDays =- 1;
Comment