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

Re: [amibroker] Re: How to change the displayed ticker in active window from Java Script ?



PureBytes Links

Trading Reference Links

Hello,

You can now (version 5.20) use:

AB = new ActiveXObject("Broker.Application");
AB.ActiveDocument.Name = "FCO";

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "przemyslawuk" <przemyslawuk@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, December 06, 2008 8:11 PM
Subject: [amibroker] Re: How to change the displayed ticker in active window from Java Script ?


> Hi,
> Sorry, I can't find it. Could you post a lint  or copy it here?
> Thanks
> 
> --- In amibroker@xxxxxxxxxxxxxxx, dingo <waledingo@xxx> wrote:
>>
>> There is code that will do this in the User Knowledge Base.
>> 
>> d
>> 
>> On Sat, Dec 6, 2008 at 1:09 PM, przemyslawuk <przemyslawuk@xxx>wrote:
>> 
>> > Hi,
>> > Can someone help me with this script? I want to change the ticker in
>> > the active window. At the moment I do it as below:
>> > AS.Open("FCX");
>> > AS.Close();
>> > AS.Open("XTO");
>> >
>> > but I it is not a very efficient way. I want to add a timer and cycle
>> > all symbols from a watchlist with a 3 seconds delay.
>> >
>> >
>> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> > AB = new ActiveXObject("Broker.Application");
>> >
>> > /* retrieve automatic analysis object */
>> > AA = AB.Analysis;
>> > AS = AB.Documents;
>> > AT = AB.Stocks;
>> > AW = AB.Windows;
>> >
>> > /* load formula from external file */
>> > AA.LoadFormula("C:\\Program
>> > Files\\Amibroker\\Formulas\\Scans\\EODExplorer.afl");
>> >
>> > /* optional: load settings */
>> > // AA.LoadSettings("the_path_to_the_settings_file.abs");
>> >
>> > /* setup filters */
>> > /* backtest over symbols present in market 0 only (zero-based
> number) */
>> > AA.ClearFilters();
>> > AA.Filter(0,"watchlist") = 6;
>> > //AA.Filter( 0, "market" ) = 0;
>> >
>> > // uncomment line below to
>> > // AA.Filter( 1, "market" ) = 2; // exclude 2nd market
>> >
>> > /* set apply to and range */
>> > AA.ApplyTo = 2; // use filters
>> > AA.RangeMode = 0; // use all available quotes
>> >
>> > /* run backtest and display report */
>> > //AA.Backtest( 0 ); // IMPORTANT: you need to specify parameter 0 to
>> > get PORTFOLIO backtest
>> > //AA.Report(""); // empty file name means display report
>> > AS.Open("FCX");
>> > AS.Close();
>> > AS.Open("XTO");
>> >
>> >
>> > ------------------------------------
>> >
>> > **** IMPORTANT ****
>> > This group is for the discussion between users only.
>> > This is *NOT* technical support channel.
>> >
>> > *********************
>> > TO GET TECHNICAL 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
>> >
>> >
>> >
>> >
>>
> 
> 
> 
> ------------------------------------
> 
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> 
> *********************
> TO GET TECHNICAL 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
> 
> 
> 

------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/