Hi Seede,

Does this help.

(I think you can substitute the High or Low, or any required bar specific 
value, for TimeNum())

//AA Settings should be on an intraday timeframe e.g. 5 min
//Run the scan then use X_ATC_IntradayHLL to report on the data
//and export it to a spreadsheet for graphing

Buy = Sell = 0;

Sym = Name();

DL = TimeFrameGetPrice( "L",inDaily,0);
BSL = BarsSince(L == DL);
ILT = ValueWhen(BSL == 0, TimeNum()/10000,1);

I uded it at the Zboard and the full code is downloadable via file links there.

http://zboard.wordpress.com/2009/03/02/342/

--- In [email protected], "murthysuresh" <mo...@...> wrote:
>
> An additional question. the highestoftheday returns a array. i want to get 
> the specific value of the highestoftheday. i tried lastvalue but it was 
> returning the values incorectly. 
> appreciate any additional help.
> Seede
> 
> --- In [email protected], "murthysuresh" <money@> wrote:
> >
> > thanks a lot. u are a genius.
> > --- In [email protected], Rajiv Arya <rajivarya87@> wrote:
> > >
> > > 
> > > newday= day()!=ref(day(),-1);
> > > 
> > > highestoftheday=highestsince(newday,H,1);
> > > 
> > >  
> > > 
> > > Rajiv
> > >  
> > > 
> > > 
> > > To: [email protected]
> > > From: money@
> > > Date: Thu, 21 May 2009 12:48:34 +0000
> > > Subject: [amibroker] Re: find today's dailybar high and low from intraday 
> > > bar
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > As per the docs below , it will give the last bar of the range in the AA 
> > > window. I am looking for the highest high of the day from the intraday 
> > > bars as the bar progreses.
> > > 
> > > http://www.amibroker.com/guide/afl/afl_view.php?name=SELECTEDVALUE
> > > 
> > > --- In [email protected], "jorgen_wallgren" <jorgen.wallgren@> 
> > > wrote:
> > > >
> > > > I am relatively new at this, but shouldn't this give you what you want:
> > > > 
> > > > H0 = SelectedValue(TimeFrameGetPrice("H", inDaily, 0));
> > > > L0 = SelectedValue(TimeFrameGetPrice("L", inDaily, 0));
> > > > 
> > > > Regards,
> > > > 
> > > > Jorgen
> > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > _________________________________________________________________
> > > Insert movie times and more without leaving Hotmail®.
> > > http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
> > >
> >
>


Reply via email to