Hello,

I have studied the above codes for a while but it seems that i can only do optimization for the last strategy. The codes will skip all the optimization except for the last one. For examples, consider the following 2 strategies which saved in Include file.

```
// Strategy1.afl
Fast1 = Optimize ("Fast1", 5, 5, 20, 1);
Slow1 = Optimize ("Slow1", 25, 25, 100, 5);
FastMA = MA(C, Fast1);
SlowMA = MA(C, Slow1);
Buy = Cross(FastMA, SlowMA);
Sell = Cross(SlowMA, FastMA);
```

```
// Strategy2.afl
Fast2 = Optimize ("Fast2", 5, 5, 20, 1);
Slow2 = Optimize ("Slow2", 25, 25, 100, 5);
FastEMA = EMA(C, Fast2);
SlowEMA = EMA(C, Slow2);
Buy = Cross(FastEMA, SlowEMA);
Sell = Cross(SlowEMA, FastEMA);
```

Then I use the rotation codes as below:

```
strategy = Optimize("strategy", 1, 1, 2, 1 );
if( strategy == 1 )
{
// rules for strategy 1
#include <Strategy1.afl>
}
else
if( strategy == 2 )
{
// rules for strategy 2
#include <Strategy2.afl>
}
```

The optimization will always do for strategy 2 but not strategy 1.

Thank you!!