Gordon and Bill,

Thanks for the input, but it doesn't quite get me to where I want to 
be. The issue is that I have to type in the XAO in your example 
Gordon. Instead, I want to use a variable in my code, say Fn2, that 
defines the Foreign symbol.

Fn2=Foreign("TWM","C");

Then, I want to pick up on the Fn2 somehow and use its symbol and 
name in the title.

This leads to being able to also do Fn3, Fn4, etc. in the same title.

This will let me do my Foreign definitions once in the code 
(avoiding possible mistakes from having to put the symbols in 
twice), do my calculations and have the Title statement 
automatically pick up the various Foreign information.

Any further ideas???

Thanks, 

Bill


--- In [email protected], "Gordon Sutherland" <[EMAIL PROTECTED]> 
wrote:
>
> Hello Bill,
> 
> The following example works for me:
> 
> SetForeign("XAO"); 
> Sym = Name();
> FName = FullName();
> RestorePriceArrays();
> Plot(C,"",-1,64);
> Title = Sym + "  " + FName;
> 
> Regards,
> 
> Gordon Sutherland
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
On Behalf
> Of billbarack
> Sent: Sunday, 29 July 2007 9:16 a.m.
> To: [email protected]
> Subject: [amibroker] Foreign Symbol and Foreign "FullName"
> 
> I would like to include the Symbol and its FullName for a Foreign 
> defined security in a custom Title statement. Having failed to 
find a 
> way to do this via the Help files and some trial and error, does 
> anyone know of a way to accomplish this?
> 
> To be more specific, consider the following:
> 
> Fn2=Foreign("TWM","C");
> 
> I would like the title to include the symbol "TWM" and its 
> name "UltraShort Russell2000".
> 
> I don't want to hard code it in but have the title change when I 
> change the Fn2 statement above.
> 
> Thanks,
> 
> Bill
> 
> 
> 
> 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
>  
> Yahoo! Groups Links
>


Reply via email to