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

RE: [amibroker] FullName of Foreign Symbol



PureBytes Links

Trading Reference Links

Ara:
 
Thanks for sharing that...I think I had seen that either in a help message or another message.  I have a series of 10 statement groups in order to produce up to 10 normalized price plots.  I think I would have to have a complex series of ..... not sure what .....loops or IIF statements to work my way thru 10 different symbols to get 10 different Fullnames.  The code like the following sniippit is the way I went and it worked (after some help from TJ).
 
 
Fn5=ParamStr( "Fund5", "");
Fn6=ParamStr( "Fund6", "");
Fn7=ParamStr( "Fund7", "");
Fn8=ParamStr( "Fund8", "");
Fn9=ParamStr( "Fund9", "");
stock5= ab.Stocks(Fn5);
stock6= ab.Stocks(Fn6);
stock7= ab.Stocks(Fn7);
stock8= ab.Stocks(Fn8);
stock9= ab.Stocks(Fn9);
if (stock5) {FName5 = stock5.FullName;} else {FName5 = "";}
if (stock6) {FName6 = stock6.FullName;} else {FName6 = "";}
if (stock7) {FName7 = stock7.FullName;} else {FName7 = "";}
if (stock8) {FName8 = stock8.FullName;} else {FName8 = "";}
if (stock9) {FName9 = stock9.FullName;} else {FName9 = "";}

 

Thanks for writing,

 

Ken



From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Ara Kaloustian
Sent: Sunday, June 10, 2007 4:57 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] FullName of Foreign Symbol

Ken Try:
 
Set Foreign("xyz","C");
FN = Fullname();
RestorePriceArray()
----- Original Message -----
From: Ken Close
Sent: Saturday, June 09, 2007 12:31 PM
Subject: [amibroker] FullName of Foreign Symbol

Seemingly basic question that I have never seen answered nor can find in the Help.
 
How do I access the FullName of a foreign symbol?
 
xyz  = Foreign("xyz","c");
 
xyzFullname = ??????
 
Thanks for the answer.
 
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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___