PureBytes Links
Trading Reference Links
|
OK, that works. Thanks all for your help. Bruce
-- In amibroker@xxxxxxxxxxxxxxx, "Marcin Gorzynski" <marcin@xxxx>
wrote:
> Bruce,
>
> You can add the following code into your indicator:
>
> Period = EndValue( BarIndex() ) - BeginValue( BarIndex() );
> "Number of bars in range = " +WriteVal(period,1.0);
>
>
> Double-click on the chart to select the first bar of the range, then
> double-click again to mark the end of the range.
> The number of bars will be displayed in the Interpretation window.
> See also: http://www.amibroker.com/guide/h_charting.html
>
>
> Best regards
>
> Marcin Gorzynski
> Amibroker.com Technical Support
>
> ----- Original Message -----
> From: "brucers3" <brucehon@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, August 30, 2004 3:01 AM
> Subject: [amibroker] Re: Bar Index Counter
>
>
> > --OK, well I'm not sure I understand. So I added the "barindex"
line
> > to the title and it now displays the index# when I click on a
date,
> > but what I would like is to click on a date and have it reset to
zero
> > and then move the cursor to another date and give me the number of
> > bars between the two dates. I have no programming knowledge so I
may
> > have misunderstood you. Thanks,Bruce
> >
> >
> >
> >
> > - In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > > Just add what you want to the title or interpretation window
> > > Title = xxxxxxxxxx + barindex();
> > >
> > > Cheers,
> > > Graham
> > > http://e-wire.net.au/~eb_kavan/
> > >
> > > -----Original Message-----
> > > From: brucers3 [mailto:brucehon@x...]
> > > Sent: Saturday, August 28, 2004 8:38 PM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Bar Index Counter
> > >
> > >
> > > I count bars a lot. Such as trough to trough, peak to peak.
> > Currently
> > > in AB I must mentally calculate the # of bars by subtraction by
> > > comparing the values of the bar index counter at bottom of
> > > window.This can get tiring. Is there a way to click on a certain
> > date
> > > (hopefully one click)and have the counter reset to zero and then
> > > count bars as I move the cursor along, ideally going backwards
or
> > > forward much like what can be done in Qcharts or Esignal?
> > >
> > > Thanks, Bruce
> > >
> > >
> > >
> > >
> > >
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > >
> > > Check group FAQ at:
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------
--------
> ------
> > Yahoo! Groups Links
> >
> > a.. To visit your group on the web, go to:
> > http://groups.yahoo.com/group/amibroker/
> >
> > b.. To unsubscribe from this group, send an email to:
> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >
> > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >
> >
> >
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|