deadline indicator

 
Hi, could you help me?
I need to insert a deadline within an indicator, the expiration has the function of no longer functioning the indicator beyond that date / time.

I was suggested to insert the lines, like the ones below, then to compile and send only the .ex4 file.
I do not have technical skills, could you give me a hand? thank you

datetime Expiry =D 2018.04.20 11:00 ';
int alert = 0;
double Up [];
double Down [];
 
trade anonimus:

Maybe you are asking for something like this

datetime expiry = D'19.04.2018';

int OnInit()
  {
   if( TimeCurrent() > expiry )
     {
      Alert("Trial Period is over...");
      return(INIT_FAILED);
     }
//--- indicator buffers mapping


//---
   return(INIT_SUCCEEDED);
  }