d: a clever alternative. Thanks. _____
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dingo Sent: Wednesday, August 27, 2008 2:28 PM To: [email protected] 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 <[EMAIL PROTECTED]> wrote: can not dynamically assign array names ----- Original Message ----- From: Ken <mailto:[EMAIL PROTECTED]> Close To: [email protected] 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
