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

Re: [amibroker] Obtaining Current Bar Index



PureBytes Links

Trading Reference Links

Hello,
 
But this is the way it is supposed to work and described in the "SelectedValue" function reference
(see comment)
 
Selected bar is only for CHARTS.
And each chart has SEPARATE "selected bar".
 
AA has no concept of "selected bar" because there can be MANY chart windows open simultanously AND
each having different selected bar.
 
The only "global" selection that is available on charts AND in AA is RANGE SELECTION.
 
 
 
See "Marking a range" in
Tutorial: "Beginners charting guide"

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: C W
Sent: Thursday, August 09, 2007 6:37 PM
Subject: Re: [amibroker] Obtaining Current Bar Index

Yes, I did. I tried the selectedvalue() function but that only works for interpreation window and not backtesting in AA. In AA it always gives the last bar instead of the current one it is testing at.
 
Any other ideas?
 
Thanks,
Chris

Tomasz Janeczko <groups@xxxxxxxxxxxxx> wrote:
Did you read the docs on barindex function ?
http://www.amibroker.com/f?barindex

It contains answer to your question.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "chwinc2000" <chwinc2000@xxxxxxcom>
To: <amibroker@xxxxxxxxxps.com>
Sent: Thursday, August 09, 2007 7:30 AM
Subject: [amibroker] Obtaining Current Bar Index

> Hello All,
>
> I am trying to obtain the index of the current bar. I am trying to do
> calculations off of the close of X for example C[x]. I can't use
> barindex() because i will be using this value in a IF ELSE loop.
>
> Does anyone know how to obtain the index value of the current bar?
>
> Thanks a bunch,
> Chris
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>
>


Shape Yahoo! in your own image. Join our Network Research Panel today!
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___