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

RE: [amibroker] Foreign Symbol and Foreign "FullName"



PureBytes Links

Trading Reference Links

Bill:

For another approach, try this (code cut and pasted and not complete but it
should show the way).

ab = CreateObject("Broker.Application");
Fa0 = 1;//just to avoid syntax error check
CL0 = colorRed;
Fn0=ParamStr( "Fund0", "WTM21");
stock0= ab.Stocks(Fn0);
if (stock0) {FName0 = stock0.FullName;} else {FName0 = "";}

Plot(Fa0,Fn0,Cl0,4);//  Fa0 calculated elsewhere and not shown 

Title statement prints out Fa0 and Fn0 and its associated FName0

Contact me if you need more.

Ken

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of billbarack
Sent: Saturday, July 28, 2007 5:16 PM
To: amibroker@xxxxxxxxxxxxxxx
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






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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/