PureBytes Links
Trading Reference Links
|
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@xxxxxxx>
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 --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/
|