Using jcl's hint I made changes and tried this... It came out ok and produced the csv file needed to do the 3D hunky punky in excel.
Code:
function run()
{
	StartDate = 2003;
	EndDate = 2008;
	BarPeriod = 30;
	LookBack = 60; // Lookback period changed from default 30 to 60 to cater for largest slow period
	asset("GBP/USD");
		
	   int StepsFast = 10, StepsSlow = 40; // The number of steps the moving MA will make
		NumTotalCycles = StepsSlow * StepsFast; // Number of times to run the system

  // no trade costs...
  	Spread    = 0;
  	Slippage  = 0;
  	RollLong  = RollShort = 0;
  	
  	int Fast, Slow;	
	Fast = 1 + (TotalCycle % StepsFast); // Should return 1 to 10 each 40 times
   Slow = 20 + (TotalCycle / StepsFast);	// Should increase 20 by 0.1 10 times per 1-10 cycle of Fast increase
	
   
      vars       Price = series(priceClose() ),
                 FastMA  = series(SMA(Price, Fast) ),   // replace SMA parameter with current loop control variable value
                 SlowMA  = series(SMA(Price, Slow) );   // replace SMA parameter with current loop control variable value

      static var BuyLimit, SellLimit, BuyStop, SellStop;
      
					
				if(crossOver(FastMA,SlowMA)) {
					BuyStop = priceHigh() + 1*PIP;
					BuyLimit = priceHigh() + 5*PIP;
				}
				if(crossUnder(FastMA,SlowMA)) {
					SellStop = priceLow() - 1*PIP;
					SellLimit = priceLow() - 5*PIP;
				}
					
				if(!NumOpenLong && FastMA[0] > SlowMA[0] && Price[0] < BuyLimit)
					enterLong(1,BuyStop);
				if(!NumOpenShort && FastMA[0] < SlowMA[0] && Price[0] > SellLimit)
					enterShort(1,SellStop);
			
			if (is(EXITRUN)){
				char line[100];
       		 sprintf(line,
                "\n%6d, %6d, %6.2f, %6.2f",
                Slow, Fast, WinTotal, LossTotal); // line sent to csv file
        			file_append("Data\\NetProfit.csv", line);
      		}	
}


And the csv content.
Code:
20	2	6584.75	5973.65
20	3	6238.38	5823.69
20	4	6078.61	5523.38
20	5	5893.27	5462.33
20	6	5801.79	5237.07
20	7	5733.03	5113.88
20	8	5686.43	5116.28
20	9	5747.87	5051.76
20	10	5608.7	5084.1
21	1	7129.45	6575.14
21	2	6498.38	5974.29


Progress. I like how the community came together to help me out on this one. Thanks a lot guys.