Optimization slower in MT4 Build 406? - page 2

 

Yeah, i know. But since what version to you noticed the difference in speed? Also you might want to know, that with older builds you cannot connect to demo accounts anymore.

All i can say is, optimizations in your code brings more than the best build. Use following or similar code to skip lots of ticks

bool SkipTick(){
   static datetime curr=0;
   static double askHi=0;
   static double askLo=0;
   static double bidHi=0;
   static double bidLo=0;
   if(curr!=Time[0]){
      curr=Time[0];
      askHi=Ask;
      askLo=Ask;
      bidHi=Bid;
      bidLo=Bid;
      return (false);
   }else{
      if(Ask>askHi || Ask<askLo){
         askHi=MathMax(Ask,askHi);
         askLo=MathMin(Ask,askLo);
         return(false);
      }
      if(Bid>bidHi || Bid<bidLo){
         bidHi=MathMax(Bid,bidHi);
         bidLo=MathMin(Bid,bidLo);
         return(false);
      }
   }
   return(true);
}

void start(){
  if(SkipTick()) return();
}
 
schnappi:

@RaptorUK: What are you trying to tell me?

Just that if you want to use MT4 you are in the hands of Metaquotes . . . whatever they choose to do. I assume that as time goes by they will push harder and harder to get people over to MT5 . . .
Reason: