How to lock and giving expiration to Expert Advisor?

To add comments, please log in or register
ANCOLL
641
ANCOLL  

Dear all trader,

I want to give a free expert advisor, but I am afraid somebody will use this free to sell it somewhere like ebay...

How to lock this EA by giving an expiration date to it, for example when it reach 1 month it won't work, instead it said something like "your ea is expired"

I ever asked this question, but it's in somewhere inside this forum..

thank you before for answering my question.

regards,

swagman1
97
swagman1  

Another way perhaps

Intsead of having everyone download a new version every time the old one expires, how about doing something like cja did with his Signal_Bars indy. You have to enter a password in the input box when you attach it to a chart and if not a message comes up saying the password is wrong and the indy is free at Forex-TSD.

I dont know how or where to put this in the EA, but if you contact CJA maybe he could help.

Also like the locks on the door of your house they only really keep the honest people out, if someone really wants your code I am sure they could crack the EX4.

All the best

ANCOLL
641
ANCOLL  
swagman1:
Intsead of having everyone download a new version every time the old one expires, how about doing something like cja did with his Signal_Bars indy. You have to enter a password in the input box when you attach it to a chart and if not a message comes up saying the password is wrong and the indy is free at Forex-TSD.

I dont know how or where to put this in the EA, but if you contact CJA maybe he could help.

Also like the locks on the door of your house they only really keep the honest people out, if someone really wants your code I am sure they could crack the EX4.

All the best

thank you for your suggestion,

but i would like to give expiration date since I will often update the EA as well..

I have tried this one.

-------------------------------------------------------------------------------

int start()

{

string expire_date = "2006.31.06"; //<-- hard coded datetime

datetime e_d = StrToTime(expire_date);

if (CurTime() >= e_d)

{

Alert ("The trial version has been expired!");

return(0);

}

// your normal code!

return(0);

}

------------------------------------------------------------------------------------

but it comes error..

maybe anyone can help?

oromek
4
oromek  

hi Ancoll

the problem could in date field, instead of "yyyy.dd.mm" use "yyyy.mm.dd" format:

string expire_date = "2006.06.31";

regards

oromek

RajaCS
5
RajaCS  
I wanna ask about all expert advisor that sell in mql5.com. Are they guaranted that have no expired and lock in their coding?
Sergey Golubev
Moderator
106094
Sergey Golubev  
RajaCS:
I wanna ask about all expert advisor that sell in mql5.com. Are they guaranted that have no expired and lock in their coding?

Yes.

Forum on trading, automated trading systems and testing trading strategies

Activating an expert advisor

Sergey Golubev, 2016.08.10 17:00

Rules of Using the Market Service -
12. The fact of creation of a secure version of the Product for the Buyer's equipment configuration is called Activation.
13. The number of free Product Activations available to the Buyer on another PC after purchasing the Product is defined by the Seller. The minimum number of such Activations is 4.
14. The Buyer purchases the right to activate a Product as many times as specified by the Seller at the moment of purchasing or renting this Product. For example, if a Product allows 20 activations at the moment of its purchase, the Buyers can install it on 20 different hardware configurations even if the Seller will decrease this number afterwards.

The author/seller can prodide more activation. How many activation do you have and how many of them were left?
Go to your Profile - Purchases


Forum on trading, automated trading systems and testing trading strategies

Product Activation Question

Stuart Browne, 2015.03.06 11:32

The activation number is the number of different PC's you can use the product on with one license, not how many times it's been downloaded. It's a common misconception :)

As Alain said above, you get one activation per PC, regardless of the number of accounts you are running on that PC. So if the product shows 5 activations, you can use it on 5 different PCs under the MQL5 login account you purchased the indicator or EA on.


To add comments, please log in or register