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

[amibroker] Re: SetForeign's funcationality -- FullName() becomes Name() ?



PureBytes Links

Trading Reference Links

Friends,

I set the 'Symbol->Information->Full Name' for 'MSFT' / 'CSCO' 
and 'YHOO' to 'Company 1' / 'Company 2' and 'Company 3' respectively 
and ensured that without SetForeign(), the FullName() is working 
properly.  It does seem as if after executing SetForeign(), the 
FullName() becomes Name() !

Has anyone else observed this ?

Regards,
- Salil V Gangal



--- In amibroker@xxxxxxxxxxxxxxx, "Salil V Gangal" 
<salil_gangal@xxxx> wrote:
> Friends,
> 
> Based on the documentation, I see that the SetForeign() sets OHLCV, 
> OI, Avg to foreign security.  However it does not go to get the 
> FullName().  So when used in combination, as far as I can tell, it 
> sort-of does something weird. For example following code ===>
> 
> SetForeign("MSFT");
> Title = FullName();
> SetForeign("CSCO");
> Title = Title + " " + FullName();
> SetForeign("YHOO");
> Title = Title + " " + FullName();
> 
> Sets the Title to 'MSFT CSCO YHOO', which is as if FullName() is 
> returning Name() after SetForeign() goes in effect.  Is this 
> expected ?
> 
> Sure ... I can get around SetForeign's apparent inability to work 
> with FullName(), by using external Watch Lists, but will like to 
know 
> what's going on here.  Why does FullName() not return the name of 
> the 'current' security, why does it return the symbol of the 
> SetForeign's security ?
> 
> Regards,
> - Salil V Gangal



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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