Previous Day's High

 

Hi,

is there a program/function available which can find the highest and lowest of the previous trading day (5EST to 5EST)

 
See iHigh and iLow.
 

How do I define time 5EST to 5EST in iHigh or iLow.

 

Use functions iHighest and iLowest to determine bar index on 1 Hour chart.

 

Rosh thanks for your support.

I get your point of using iHighest and iLowest for my problem, but just need assistance of using them.

Say at 10EST today, I need to know the highest and lost of previous day's highest and lowest (5pm to 5pm EST). How do I know which index number matches with 5pm EST.

 
 

A bit high level solution.

Is there any easier one??

 
Set up manually Time difference between server time and 5EST then use function iBarShift
 

o Thanks Rosh,

Just solved the problem as following

int CurrentHour=Hour(),X;

double Maximum,Minimum;
if (CurrentHour>21)
{
X=CurrentHour-21;
Maximum=High[iHighest(NULL,0,MODE_HIGH,23,X)];
Minimum=Low[iLowest(NULL,0,MODE_LOW,23,X)];
}

My Server time of 21 is equivalent of 5PM EST.

 
Good. I'm glad for you.
Reason: