// Now that we have the start end end bars ago values for the specified time range we can calculate the highest high for this range
double highestHigh = MAX(High, startBarsAgo - endBarsAgo)[endBarsAgo];
// Now that we have the start end end bars ago values for the specified time range we can calculate the lowest low for this range
double lowestLow = MIN(Low, startBarsAgo - endBarsAgo)[endBarsAgo];
// Now that we have the start end end bars ago values for the specified time range we can calculate the middle for this range
double midPoint = highestHigh + lowestLow * .5, (startBarsAgo - endBarsAgo) [endBarsAgo];
Comment