TJ Thanks for the correction
A ----- Original Message ----- From: Tomasz Janeczko To: [email protected] Sent: Wednesday, August 27, 2008 12:00 PM Subject: Re: [amibroker] Subscripted Array Names Sure you can: function Price( k ) { return VarGet( "Price"+ StrFormat("%02.0f", k ) ); } Price01 = something Plot( Price( 1 ), "dynamic array name", colorBlack ); Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: Ara Kaloustian To: [email protected] Sent: Wednesday, August 27, 2008 8:19 PM Subject: Re: [amibroker] Subscripted Array Names can not dynamically assign array names ----- Original Message ----- From: Ken 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
