Accessing ATC full name

How can I access the FullName of an ATC?

I tried:
ATC_FullName = Foreign(ATCname,"FullName"); This gives me a numeric array

ATC_FullName = Foreign(ATCname,FullName()); This gives me a numeric array of zeros

https://www.amibroker.com/guide/afl/getfndataforeign.html

Version(6.20);

ATCname = "~YourATC";

fn = GetFnDataForeign("FullName", ATCname);

printf("%s", fn);

Or slower

ATCname = "~YourATC";

SetForeign(ATCname);
fn = FullName();
RestorePriceArrays();

printf("%s", fn);
2 Likes