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

Re: [amibroker] FullName in Title with Foreign



PureBytes Links

Trading Reference Links

Hi Ken,

It can be done but I think you would need to use OLE since fullname is not 
included in Foreign/SetForeign functions. I am not very good with it, so 
there is slim chance that this code will work as is, but I think it should 
look something like this. Maybe some OLE guru can correct any mistakes:

EnableScript("jscript");
<%
function GetForeignFullname( Issue )
{
AB = new ActiveXObject("Broker.Application");
ForeignFullname = AB.Stocks( Issue ).Fullname;
return ForeignFullname;
}
%>

Issue = ParamStr( "Issue", "RUT-I" );
script = GetScriptObject();
ForeignFullnmae = script.GetForeignFullname( Issue );

Steve

----- Original Message ----- 
From: "Ken Close" <closeks@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, January 08, 2006 11:49 AM
Subject: [amibroker] FullName in Title with Foreign


> Lots of questions about Title these days.....and here is another.
>
> I want to use ParamStr to input a symbol and then let Foreign get the 
> price
> and go from there.
>
> When I get to the custom Title statement, I would like to display the 
> active
> symbol and its FullName().
>
> So, something like:
>
> Issue = ParamStr("Issue","RUT-I");
> Price = Foreign(Issue,"C");
>
> <snip code>
>
> Title = Issue  + FullName() + "\n" +
>
> FullName() like this displays, of course, the fullname of the symbol in 
> the
> input/enter box, not the fullname of the symbol specified in the Param 
> entry
> box.
>
> Is there a way to display the FullName of the symbol entered via a Param
> box?
>
> I think the answer is "no", but someone here perhaps knows of a way.
>
> Thanks,
>
> Ken
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.15/223 - Release Date: 1/6/2006
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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