high & low from a day before open order

hi everyone

i would like to know if someone can teach me how to pull the high & low from a day before my open order to put in my EA

thanks in advanced

B.T.w. anyone knows if by "MT5" exsist Debugging step by step or other way to do it?

or how to get high & low from a spcific day like 06/30/2010 ?

thanx

OPPS I forgat to say thanks for everyone to being so helpful

it took a couple days but i managed my self

thanks again

Can you please tell me how you did it ?
qjol: i would like to know if someone can teach me how to pull the high & low from a day before my open order to put in my EA
... OrderSelect(...){
       datetime OOT       = OrderOpenTime(),
                dayOfOpen = DateOfDay(OOT),
                yesterday = DateOfDay(dayOfOpen-1);
       int      iD1Yest   = iBarShift(NULL, PERIOD_D1, yesterday);
       double   yestHigh  = iHigh(NULL, PERIOD_D1, iD1Yest),
                :
#define HR2400          86400                   // 24 * 3600
datetime TimeOfDay(datetime when){  return( when % HR2400          );       }
datetime DateOfDay(datetime when){  return( when - TimeOfDay(when) );       }