I have this script to do my scanning
How can i customise it to do the following
1. How can i set the "Wait for backfill" flag
2. I get error "detailed report not available " popup. Not sure why?
3. Configure the database to be EOD data programatically
Thanks
Seede
/* create AB object */
AB = new ActiveXObject("Broker.Application");
AB.LoadDatabase("C:\\Program Files\\AmiBroker\\Copy");
/* retrieve automatic analysis object */
AA = AB.Analysis;
/* load formula from external file */
AA.LoadFormula("Scans\\90DayHighScans_LONG.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(); // 0= include, 1= exclude
//AA.Filter( 0, "market" ) = 0;
//AA.Filter( 1, "market" ) = 0;
/* set apply to and range */
AA.ApplyTo = 0; // use symbols
AA.RangeMode = 2; // use last day's quotes
AA.RangeN = 1;
/* run scan and display report */
AA.Scan();