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

RE: [amibroker] Subscripted Array Names



PureBytes Links

Trading Reference Links

d:
 
a clever alternative.
 
Thanks.


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of dingo
Sent: Wednesday, August 27, 2008 2:28 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Subscripted Array Names

A simple alternate way would be to have one more array, say PriceX and then use it to hold the array you want to work on:
 
PriceX = IIF(arrayNbr ==1, Price1, IIF(arrayNbr ==2, Price2 .... etc..
 
and then you can use Pricex(i) in a subroutine ..
 
d

On Wed, Aug 27, 2008 at 2:19 PM, Ara Kaloustian <ara1@xxxxxxxxxx> wrote:
can not dynamically assign array names
----- Original Message -----
From: Ken Close
Sent: Wednesday, August 27, 2008 10:45 AM
Subject: [amibroker] Subscripted Array Names

How can I use "subscripted array names"?
 
Price[i] refers to the i-th bar of the the array named "Price"
 
I have a series of arrays, Price01, Price02, Price03, all representing prices over the full number of bars.
 
Is it possible and how to refer to Price(k) where k in this case is "01". "02", "03", etc.
 
IOW, I would like to more easily manipulate arrays using loops.
 
Any help?
 
Ken

__._,_.___

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




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

__,_._,___