| 
 that's not true. I use this as well and works 
fine. 
  
I for instance use: 
  
if (Name() == "X") { per1 = Optimize("per1", 
19, 1, 60, 1);  per2 = Optimize("per2", 11, 1, 60, 1); per3 = 
Optimize("per3", 0.6, 0, 1, 0.05); per4 = Optimize("per4", 1.5, 1, 5, 
0.05); per5 = Optimize("per5", 32, 10, 100, 1); } if (Name() == 
"POT") { per1 = Optimize("per1", 37, 1, 60, 1);  per2 = 
Optimize("per2", 14, 1, 60, 1); per3 = Optimize("per3", 0.95, 0, 1, 
0.05); per4 = Optimize("per4", 2.05, 1, 5, 0.05); per5 = Optimize("per5", 
15, 10, 100, 1); } 
  
etc. 
  
  
  
  ----- Original Message -----  
  
  
  Sent: Tuesday, October 28, 2008 10:25 
  AM 
  Subject: [amibroker] Backtest with 
  separate params for each symbol 
  
  
  
  I am trying to write system with separate params values for each 
  symbol. For example:
  if (Name() == "AAPL" ) { param1 = 10; param2 
  = 20; } else if(Name() == "MSFT") { param1 = 30; param2 = 40; 
  }
  This example doesn't work because if statement needs only number 
   expressions. Any idea how to get separate params values for each 
  symbol? Thanks
  Martin
 
    
__._,_.___
  
**** IMPORTANT **** 
This group is for the discussion between users only. 
This is *NOT* technical support channel. 
 
********************* 
TO GET TECHNICAL 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 
 
********************************* 
  
     
    
 
      
   
__,_._,___
 |