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

Re: [amibroker] Subscripted Array Names



PureBytes Links

Trading Reference Links

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 -----
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
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

__,_._,___