Need help regarding adding protection to my EA - page 2

 
Arif Chowdhury:

Great!!! I am fooled with it... its not solved!... its just showing alert correctly after time expired however, it doesn't stop EA from doing its trade! *sigh* 

have to start again from the scratch!  

Yes... finally got it

They said, the most important things in the world are simple... yes these codes are simple as well... we just making it unnecessary complex

1st code: datetime expiryDate = D'2018.04.18 00:00';

2nd code: if(TimeCurrent() > expiryDate)

     {

      Alert("Trial expired! Please purchase from ");

      return(0);

     }


GAME OVER!

 
Arif Chowdhury:

Yes... finally got it

They said, the most important things in the world are simple... yes these codes are simple as well... we just making it unnecessary complex

1st code: datetime expiryDate = D'2018.04.18 00:00';

2nd code: if(TimeCurrent() > expiryDate)

     {

      Alert("Trial expired! Please purchase from ");

      return(0);

     }


GAME OVER!

Yeah :) You can also use the ExpertRemove() function.

Reason: