Download MetaTrader 5

sharing beta versions of EAs - how to implement protection

To add comments, please log in or register
Have you discovered something really important? Write an article and receive 200 USD!
Grzegorz Korycki
52237
Grzegorz Korycki 2014.10.07 16:35 

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
1693
Osiris 2014.10.07 18:36  
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
52237
Grzegorz Korycki 2014.10.07 19:04  
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