please help me with this '==' - open parenthesis error on mq5

 
 double CalculatePoint() {
   if (Digits == 3 || Digits == 5) {
      return 0.0001;
   } else if (Digits == 2) || Digits == 4) {
      return 0.01;
   }
   return 1.0;
} 

Improperly formatted code edited by moderator. Please always use the CODE button (Alt-S) when inserting code.

Code button in editor

 
celenkosini sibusiso:
double CalculatePoint() {
 int digits = Digits(); 
   if (digits == 3 || digits == 5) {
      return 0.0001;
   } else if (digits == 2 || digits == 4) {
      return 0.01;
   }
   return 1.0;
}
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893