code error showing declaration of 'ADX_trend_level' hides global declaration

To add comments, please log in or register
ECURRENCY TEAM
93
ECURRENCY TEAM  
color assigncolor(double adx_time,double ADX_trend_level,double di_p_time,double di_m_time)
   {
   if (adx_time < ADX_trend_level) { return (LightSkyBlue); }
   else if (di_p_time > di_m_time) { return (Lime); }
   else {return (Red); }
   
   }
   
   color assignCCIcolor(double cci_time)
   {
   if (cci_time > 0) { return (Lime); }
   else {return (Red); }                            
   }     

please correct the error

Files:
ToR_1.20.mq4 66 kb
Keith Watford
Moderator
17911
Keith Watford  
ECURRENCY TEAM:

please correct the error

I am guessing that you have already declared ADX_trend_level as a global scope variable.

The error report should tell you in which line the variable was declared.

To add comments, please log in or register