i need help about momotum indicator

 

i have an ea  iget some modification but i get a error 

 

'Momentum_Status' - undeclared identifier

 i have already declared it 

   AskMomentum(); 

int AskMomentum()
{
MomentCurrent = iMomentum(NULL,0,MomentTime,PRICE_CLOSE,0);
 MomentPrevious = iMomentum(NULL,0,MomentTime,PRICE_CLOSE,1);
  
  if((MomentPrevious>MomentCurrent)||(99<=MomentCurrent>=101)){
Momentum_Status   =  DECISION_BUY;
        
   }
   return (0);
}
 
mystario:

i have an ea  iget some modification but i get a error 

 

'Momentum_Status' - undeclared identifier

 i have already declared it 

   AskMomentum(); 

Without showing more of your code, like where you declare Momentum_Status, it will be impossible for anyone to help sorry
 
mystario:
this is the code
In your global declarations you declare it as "Momentum_status" (small "s" in status), in your code it has a capital "S" in status (Momentum_Status). You need to change one of them so they both match
 
Comments that do not relate to this topic, have been moved to "Need help posting a job request.".
Reason: