If you do want to do it by scripting, just pass the correct argument to the 
Backtest method of the Analysis object and still run against the single 
watchlist of all desired symbols.

Mike

--- In [email protected], "Mike" <sfclimb...@...> wrote:
>
> You do not need any scripting to do that. Just select a watchlist in the AA 
> window then click on the arrow of the Optimize button to choose the old 
> backtester (backtests each symbol one by one, generating unique reports along 
> the way).
> 
> Mike
> 
> --- In [email protected], "michaels_musings" <michaels_musings@> 
> wrote:
> >
> > Hi All,
> > 
> > I'm trying to automate a set of single symbol optimizations.  I want each 
> > symbol to be optimized separately (e.g. not as a portfolio).
> > 
> > I'm thinking the "run_production.py" from  pete@ from the Files area, that 
> > uses python to run every .afl file in a directory should work.  But, I'm 
> > stuck on how to programmatically tell the optimizer which individual symbol 
> > I desire run within each .afl code file.  (Obviously you can go change the 
> > selected stock in AB, but that sorta kills off the automation part ;)  Is 
> > there a SetOption I'm not understanding?
> > 
> > Anyone know a link to someone who's written up how to do something similar?
> > 
> > Is there a way to do this within AB without resorting to something external?
> > 
> > Thanks,
> > Michael
> > 
> > Snipit from  run_production.py:
> > # Script modified and ported to Python from TJ's sample in the 
> > documentation by pete@
> > # File revision: $Revision: 205 $
> > import os
> > from datetime import date
> > from win32com.client import Dispatch
> > 
> > # START MODIFY TO FIT YOUR SETUP
> > AFLFolder = "C:\\Program Files 
> > (x86)\\AmiBroker\\Formulas\\Custom\\Strategies\\_Production"
> > ResultFolder = 
> > "C:\\Home\\Peter\\Documents\\Work\\Trading\\AmiBroker\\_Production"
> > # END MODIFY TO FIT YOUR SETUP
> >
>


Reply via email to