The for() loop won't work here because it would be exeuted for any strategy run.
Instead:
int StepsFast = 10, StepsSlow = 40;
NumTotalCycles = StepsSlow * StepsFast;
and then:
Fast = 10 + (TotalCycle % StepsFast);
Slow = 20 + (TotalCycle / StepsFast);
at least that's the basic idea.