Download MetaTrader 5

sharing beta versions of EAs - how to implement protection

To add comments, please log in or register
Grzegorz Korycki
59976
Grzegorz Korycki  

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?

Osiris
1755
Osiris  
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
Grzegorz Korycki
59976
Grzegorz Korycki  
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()

To add comments, please log in or register