sharing beta versions of EAs - how to implement protection

 

i would like to share some of my beta expert advisors. I would like them to be operable only for 1-3 months.

I add such conditions to the beta versions:

   datetime allow_date=D'2014.12.01 00:00';
   
   if(allow_date>TimeCurrent()) {
      //main functions
   }

Can i just safely post this version on my profile page for free as a time limited beta version?

Can the time settings be hacked somehow (like changing clock back) or may I assume this kind of protection is going to be good enough?

 
angreeee:

i would like to share some of my beta expert advisors. I would like them to be operable only for 1-3 months.

I add such conditions to the beta versions:

Can i just safely post this version on my profile page for free as a time limited beta version?

Can the time settings be hacked somehow (like changing clock back) or may I assume this kind of protection is going to be good enough?

Instead of computer time... use broker time on MT4.. this way someone cannot change clock back
 
kebaya:
Instead of computer time... use broker time on MT4.. this way someone cannot change clock back

You are right - taking server time would do the job.

OK i looked it up.

for local time you use

TimeLocal()

while for server time you use

TimeCurrent()

Reason: