PureBytes Links
Trading Reference Links
|
>From javascript:
var ab = new ActiveXObject("Broker.Application");
ab.LoadDatabase(...);
ab.ActiveDocument.Name = "ORCL";
If there is no active document (i.e. no open charts) then you will get an exception. Haven't gotten around to looking into how to set the active document when none present.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, Keith McCombs <kmccombs@xxx> wrote:
>
> Does anyone know how one might programmatically set the current ticker.
> Not SetForeign().
>
> My reason is that I have written a function that runs fine, as long as
> the 'current' ticker has some data. However, if the current ticker has
> no data, then the function does not work. Its purpose is to load new
> tickers and set static variables from a list. It doesn't actually _do_
> anything with the current ticker.
>
> I've looked through all the functions in the 5.20 manual and the OLE
> Object Model. But couldn't find anything that I thought might work.
>
> Thanks in advance, for any and all help.
> -- Keith
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:
amibroker-digest@xxxxxxxxxxxxxxx
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/
|