I am trying to get the high between two times, say 9:30 and 9:40 using tick charts.
Can I use Getbar like I have below to achieve this?
startDateTime = new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, 9, 30, 0);
if ((ToTime(Time[0]) == 94000))
{
int ibarsAgo = Currentbar - Bars.GetBar(startDateTime);
openingRangeHigh = MAX(High, ibarsAgo)[0];
openingRangeLow = MIN(Low, ibarsAgo)[0];
// Draw
}

Comment