Try AA.close()

----- Original Message ----- 
From: "inner_records" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, June 01, 2007 1:10 PM
Subject: [amibroker] close automatic analysis box? jscript, scripts


>I adapted the script below to run an exploration and it works great, 
> except I can't figure out how to close the "Automatic Analysis" box 
> at the end of the script - can anyone help?
> 
> Thank you for your time!
> 
> 
> /*Simple jScript to perform exploration using rules in TEST.AFL,
>  produces text file of results as TEST.TXT   Use at own risk!*/
> var AB, AA;
> AB = new ActiveXObject("Broker.Application");
> AA = AB.Analysis;
> AA.ClearFilters(); 
> AA.ApplyTo = 0; // use symbols
> AA.RangeMode = 1; 
> AA.RangeN=1; //last 1 trading days
> AA.ApplyTo = 2; // use filters  
> AA.Filter(0,"watchlist") = 0; /* watch list number*/;
> 
> AA.LoadFormula( "C:\\AmiBroker\\TEST.AFL" )  //use this test
> AA.Explore();
> AA.Export ( "C:\\AmiBroker\\TEST.TXT" ); // generate report
> 
> 
> 
> 
> 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 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
> 
> 
> 

Reply via email to