Trial expiry
-
Hi , i want to give out a trial on my ea . I know how to put in expiry date , but the thing is i see it only regonize the expiry date when you have closed metatrader and reopen it , it there a way so that it check the date and you dont have to close the metatrader for the ea to expire ?Thanks in advance
-
@Jackimus You can do something like this:

That is the UNIX time for April 1st this year. After that moment the EA will not be functional no matter how many times you try it.
-
@l-andorrà Hi thanks for the repply , i have corrected my error , i had it on in and not on timer , i used this method

-
You can remove the 'pass' block on top. Unless you are modifying a variable there, you don't need it.