[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: find today's dailybar high and low from intraday bar



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "murthysuresh" <money@xxx> 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 amibroker@xxxxxxxxxxxxxxx, "murthysuresh" <money@> wrote:
> >
> > thanks a lot. u are a genius.
> > --- In amibroker@xxxxxxxxxxxxxxx, Rajiv Arya <rajivarya87@> wrote:
> > >
> > > 
> > > newday= day()!=ref(day(),-1);
> > > 
> > > highestoftheday=highestsince(newday,H,1);
> > > 
> > >  
> > > 
> > > Rajiv
> > >  
> > > 
> > > 
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > 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 amibroker@xxxxxxxxxxxxxxx, "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
> > >
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/