PureBytes Links
Trading Reference Links
|
--- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@xxx> wrote:
> Basically, I want a "getCurrentBarIndex()" function that returns a
> Number such that for any array at any bar I could write
>
> MyScaler = MyArray[getCurrentBarIndex()];
>
The way I understand it, if you are hoping to "getCurrentBarIndex()"
as it logically advances during AFL array-based operations, you can't.
Those ops are done internally and you can't "get in the middle" of
them via an index.
What you can do is write a loop and implement your own operations. As
your loop steps thru all bars, you can grab other already-available
AFL array values via index and then do your own calculations to create
your own values and arrays.
I'm a bit new at this myself, so if the above could be said better, or
needs outright correction, I invite it.
------------------------------------
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
<*> 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/
|