I created a method that finds the High and Low of yesterdays values from a specific point in time using DateTime.
startDateTime = new DateTime(Time[0].Year, Time[0].Month, Time[0].Day-1, 10, 00, 0);
int barsAgo = CurrentBar - Bars.GetBar(startDateTime); // Store price data from 10:30 AM
getHighestHigh = MAX(High, 1)[barsAgo];
...
It works fine except when I get to Monday then it spits out values that are maybe from Sunday since they are futures?
I prefer only US Equities RTH and assumed it would only use Monday-Friday...
Do I have to add a line that specifies the days?
Irvin
Comment