Anyone know how to change the getTodayOHLC.efs to exclude premarket (include only 8:30 - 15:16 CST)? I'd like to draw H/L for regular market hours only.
Thanks
Thanks
if (getDay(0) != getDay(-1)) { // we have a new day
nHigh = high(0); // set to current bar's high
nLow = low(0); // set to current bar's low
nOpen = open(0); // set to current bar's open
} else { // still the same day as the last bar
nHigh = Math.max(nHigh, high(0)); // set to new bars high if greater
nLow = Math.min(nLow, low(0)); // set to new bars low if lower
// leave nOpen alone until the next day is found
}
Comment