How To Speed Up Optimization?

 
Hi Guys,

For example I want to optimize a moving average cross over EA
I have the following inputs

Fast_MA and Slow_MA
So under the tester environment, I put the following

Fast_MA > start : 1, step : 1, stop : 20
Slow_MA > start : 1, step : 1, stop : 20

I want to skip when Fast_MA value is more than Slow_MA

How can I go about doing this?
 
bool gbSkip = FALSE;

int init(){
  
   if (Fast_MA > Slow_MA){
     gbSkip = TRUE;
     return(0);
   }
   //...
}

int start(){

   if (gbSkip != FALSE){
     return(0);
   }
   //...
}
I guess this would make it a bit faster.
 
anything faster than using return(0)?