Download MetaTrader 5

'i got errror in the jam trade function not define please help me im newbie here

To add comments, please log in or register
How to use MQL5.community messages editor? Find out in the article!
wahyudi09
17
wahyudi09 2014.11.07 05:06 
 int Jam_trade()
{
   bool trade = false;
   if(Mulai_Jam > Akhir_Jam){
     if (Hour() >= Mulai_Jam || Hour() < Akhir_Jam) trade = true;
   } else
     if (Hour() >= Mulai_Jam && Hour() < Akhir_Jam) trade = true;
  
   return (trade);
}
wahyudi09
17
wahyudi09 2014.11.07 05:15  
i got error in this , trade not define iam newbie here please help me
Carl Schreiber
6609
Carl Schreiber 2014.11.07 09:36  

1) please use the SRC button beside the camera!!

2) use Print(..) to see what is going wrong - I my crystal ball told me that the definition of Mulai_Jam and Akhir_Jam might be wrong?

To add comments, please log in or register