Yesterday High/Low/Close - page 2

 
NewCoder47:
Awesome, thats works awesome. Thought I was missing something.....

What price does this work off, bid or ask??

Bid . . . all prices are Bid prices . . .
 
NewCoder47:
Hi
.......... ........... they all require me to count a specific number of bars back, when it would be a different number of bars that I count dependant on time of day and time-frame on the chart............................... There is something I am not getting I think?!?

(1440/Period()) number of bars you can have in a day in other period

iHigh(NULL, PERIOD_D1, 1);  // yesterday's high

iLow(NULL, PERIOD_D1, 1);  // yesterday's low

If you have sunday-bar then there are 6 daily-bars each week

your high/low will with 6 daily bars each week not be calculated every time over 24 hours

.

Reason: