| 
 PureBytes Links 
Trading Reference Links 
 | 
 I'm no Java expert but I think you're trying to use methods 
wrongly. 
  
Try it in 2 steps: 
  
AB.Analysis.Optimize(0); 
  
and 
  
AB.Analysis.Export("File.csv"); 
  
d  
  
  I am writing a script to save Optimization results.  I am 
  having a problem with the AB.Analysis.Optimize.Export line below. The error 
  I get is "Wrong number of arguments or invalid property assignment". 
  I believe I have incorrect syntax with the file name and have tried 
  many different combinations, but I have not solved this.  When I 
  comment out this line, the rest of the script works fine.  Any help 
  will be greatly appreciated.
  eman
  AB = new ActiveXObject 
  ("Broker.Application");
  ...rest of 
  script...
  AB.Analysis.Optimize.Export("file.csv");
 
 
  
  
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 
 
  
    
  
  
  
    SPONSORED LINKS
   
       
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
  |