| 
|  | Kiran 2016-06-28 19:38:52
 
 
 
 |  | 
	 I'm testing a strategy on a list of S&P500 stocks.  Is there a way to optimize strategy parameters for each symbol (say over a 6-month period) and thenbacktest against the entire list (say over 2 month out-of-sample period) with the optimized parameters assigned per-symbol?  Then repeat this process over 5-6 sliding windows
 
 Essentially i'm trying to run a walk-forward optimization process and generate an out-of-sample equity curve, but with the per-symbol optimized strategy parameters used for each symbol during the oos run.
 
 Please advise easiest way to code this?
 
 thx
 Kiran
 
 
 
 |  |  | 
| 
|  | Kiran 2016-06-28 20:38:19
 
 
  0   
 
 |  | 
	 Also, in the out-of-sample run, want to filter symbols based on whether their best (optimized) in-sample Net Profit >0.Couple of options - can i use ..
 1) Meta-Strategy for out-of-sample and include the Strategy in it for In-sample run?  Challenge is the dates are different for IS (strategy) and OOS (meta-strategy) and also symbol list for Meta-Strategy is different from Strategy (which runs per strategy)
 
 2) Dynamic list to filter symbols in In-sample period (based on optimal performance) and use Strategy to run out-of-sample period against the dynamic list.  Challenge is how do i pass the optimal per-symbol parameters evaluated in the Dynamic List to the strategy so it uses these?
 
 
 
 |  |  | 
| 
|  | QuantShare 2016-06-29 09:47:12
 
 
  0   
 
 |  | 
	 You can do so using "Tools -> Script Editor". You can run backtests/optimizations programmatically, update trading system parameters and store report results.
      
 
 
 |  |  | 
| 
|  | Kiran 2016-06-29 12:22:02
 
 
  0   
 
 |  | 
	 I looked in the Quantshare directory and found *.azf scripts only for some indicators.  Didn't find any help in the doc or How-to guides or Knowledge Base.Can you point me to some sample scripts that
 1) run simulation/optimizations of a strategy that iterates through each symbol in the list on a specific date-range (Not sure how to invoke a strategy and update the Date and Symbol settings, access the symbols in a list)
 
 2) store these optimal parameter values for each symbol (i guess these would be stored in an array within the script?)
 
 3) run an out-of-sample backtest on the list by plugging in these parameter values back in the strategy script for each symbol.
 
 
 
 
 
 
 
 |  |  | 
| 
|  | QuantShare 2016-06-30 10:41:43
 
 
  0   
 
 |  | 
	 After selecting "Tools -> Script Editor",  click on the "Help" button at the bottom in the new control. This will display all available functions. The rest is just C# coding.
 If you need help to implement this script, you can hire one of our programmers to do this for you. Just contact support for that.
 
 
 
 |  |  | 
| 
 |