System test multiples

I am a new user, ex metastock, who is testing amibroker in demo and I have a simple question: is it possible to test multiple trading systems at the same time on 1 stock or group of stocks? and if so, how do you do it?
Thanks in advance
Valter

Yes, you can do this. Either using Batch functionality Using Batch window (but you need recent AmiBroker to do this, not old one) where you can run multiple backtests in sequence
or using Optimization and the code like this:

sysNo = Optimize("sysNo", 1, 1, 5, 1 );

// run different system depending on sysNo variable value
switch( sysNo )
{
 case 1:
 {
 #include "FirstSystem.afl"
 }
break;
 case 2:
 {
 #include "SecondSystem.afl"
 }
break;
 case 3:
 {
 #include "ThirdSystem.afl"
 }
break;

 case 4:
 {
 #include "FourthSystem.afl"
 }
break;

 case 5:
 {
 #include "FifthSystem.afl"
 }
break;

default:
 break;
}

You got the answer, but generally this forum is for PAYING CUSTOMERS ONLY.

Only users with License verified badge are allowed to post on this forum.

So before posting, make sure you verify your license as explained here.

1 Like