Thread: Ask!
View Single Post
  #1118 (permalink)  
Old 06-06-2008, 09:24 AM
IN10TION's Avatar
IN10TION IN10TION is offline
Senior Member
 
Join Date: Mar 2007
Posts: 569
Blog Entries: 1
IN10TION is on a distinguished road
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 View Post
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.
Reply With Quote