extremely simple EA doesn't work!!!

 
Hello guys,

I've made a printer ea to show the value of data of my indicator to see if they've got the correct number,
however, it doesn't work at all(The top right corner of the chart screen there is a cross next to this printer EA's name). I don't know what's the problem..........
Can anyone help me correct the script? Thanks very much!

extern bool printer_active = 1;
datetime timeinminute;

//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
return;
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return;
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
if (printer_active == 1)
{
timeinminute = StrToTime(TimeToStr(TimeCurrent(),TIME_DATE|TIME_MINUTES));
Print("time: ",timeinminute);
Print(StrToTime(TimeToStr(TimeCurrent(),TIME_DATE)+" "+"09:00"));
}
//----
return(0);
//----
}
 
lmyyyks:
Hello guys,

I've made a printer ea to show the value of data of my indicator to see if they've got the correct number,
however, it doesn't work at all(The top right corner of the chart screen there is a cross next to this printer EA's name). I don't know what's the problem..........
Can anyone help me correct the script? Thanks very much!

extern bool printer_active = 1;
datetime timeinminute;

//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
return;
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return;
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
if (printer_active == 1)
{
timeinminute = StrToTime(TimeToStr(TimeCurrent(),TIME_DATE|TIME_MINUTES));
Print("time: ",timeinminute);
Print(StrToTime(TimeToStr(TimeCurrent(),TIME_DATE)+" "+"09:00"));
}
//----
return(0);
//----
}

have you enabled your mt4 to allow expert advisors?

 
Oh, how stupid am I,
thank you very much jcadong5
 
lmyyyks:
Hello guys,

I've made a printer ea to show the value of data of my indicator to see if they've got the correct number,
however, it doesn't work at all(The top right corner of the chart screen there is a cross next to this printer EA's name). I don't know what's the problem..........
Can anyone help me correct the script? Thanks very much!


did you look in Expert tab in Terminal..