iBarShift will find for you the bar that start on that day or also the end bar for that day.
int iBarShift( string symbol, int timeframe, datetime time, bool exact=false)
next...
use those bar positions to find the results of iHighest and iLowest
int iHighest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0)
int iLowest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0)
results & done
Quote:
Originally Posted by TheRumpledOne
I would like to know what bar the highest high and lowest low occurred for today on H1 or less time periods.
I know I can use a for loop and check.
Is there a more elegant way to do this?
Is there a first bar of today function?
Thanks.
|