The cursor skip some lines in debugging mode

 

hi

My problem is in debugging mode. For example in the below code i set a breakpoint on first line after bracket (<<int count=ArraySize(array);>>). After running the debugging , if I click "step Over" , the cursor skip to next 3 line. And also it jump all over the for loop. I want to check my program line by line , but at this time and with this new problem I can't do this.

double GetTrendLineSlope(double &array[])
{
   int count=ArraySize(array);
   int digit=Digits();
   double A=0,B=0,C=0,D=0,m=0,sumX=0,sumY=0,sumX2=0,sumXY=0;
   double slope;
   double correction;
   double res;
   for(int i=0;i<count;i++)
   {
      sumX+=i;
      sumX2+=MathPow(i,2);
      sumXY+=array[i]*i;
      sumY+=array[i];
   }
   A=count*sumXY;
   B=sumX*sumY;
   C=count*sumX2;
   D=MathPow(sumX,2);
   m=(A-B)/(C-D);
   correction=GetMA_PointCorrection(array);
   slope=-MathArctan(m)*(180/M_PI);
   res=slope*correction;
   return res;
}
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
  • www.mql5.com
Running MQL5 Program Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Reason: