Hello, Please see if mixing the two help you :
iif(barindex() = lastvalue(barindex()),TimeFrameExpand (HHV_VAL,inDaily,expandfirst),TimeFrameExpand (HHV_VAL,inDaily,expandLast)); Regards Sanjiv Bansal --- In [email protected], "Louis Préfontaine" <[EMAIL PROTECTED]> wrote: > > Hi, > > Let's say it is 11:30 AM; I'd like to be able to scan in the inDaily mode > looking for HHV of the daily value considering that the value at 11:30 would > be a daily close, instead of been the last day... > > Louis > > 2008/6/19 sidhartha70 <[EMAIL PROTECTED]>: > > > Wouldn't that effectively be forward looking...? Or are you assuming > > today's trading day has finished and the official close is now part of > > history...? > > > > If so, then I assume it would be very easy... > > > > --- In [email protected] <amibroker% 40yahoogroups.com>, "Louis > > Préfontaine" <rockprog80@> > > wrote: > > > > > > > > Hi, > > > > > > I've been having a lot of fun toying with the timeframe feature. > > However, I > > > wonder about this: when I set a variable in a daily timeframe (I am > > using > > > intraday for the rest of the formula), it's always in reference to > > the last > > > complete daily bar of yesterday. Would it be possible to set that > > variable > > > in reference to the time (NOW) in the present day? > > > > > > E.g. If I am looking for a HHV, it will take last day as a reference. > > > Would it be possible to be alerted if the HHV in daily bar is broken... > > > today, and not yesterday? > > > > > > Thanks, > > > > > > Louis > > > > > > > > > >
