I am reading this link and try to find my answer :
https://www.mql5.com/en/market/rules
from the rules:
Products must not contain deliberate operation restrictions or change their functionality depending on the type of account, account number, name of a trading server and other similar conditions under which they are used.
Hello friends. Thank you for guiding me. I want to set an expiration date for my expert. I will also attach an indicator to it. I want the indicator to stop working after the expiration date I coded. I do not see an error in expert writing, but when I put the date last year, does the indicator still work? While it should not work according to the coded date. Can anyone help?
datetime expiryDate = D'10.04.2015 00:00:00'; //change as per your requirement
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thanks sergey
I am reading this link and try to find my answer :
https://www.mql5.com/en/market/rules
from the rules:
Products must not contain deliberate operation restrictions or change their functionality depending on the type of account, account number, name of a trading server and other similar conditions under which they are used.
Hello. I made an expiration date for my expert. But it gives an error for the expiration date I made. Thank you for your help. thank you
datetime expiryDate = D'20.10.2022 00:00:00'; //change as per your requirement
int OnStart()
{
if(TimeCurrent() > expiryDate)
{
Alert("Expired copy. Please contact vendor.")
return(0);
}
Hi you need one more closing bracket.
Thank you very much. Thank. But even though I put in a new bracket, I still got the error؟
It is known in the file that I put.Hello friends. Thank you for guiding me. I want to set an expiration date for my expert. I will also attach an indicator to it. I want the indicator to stop working after the expiration date I coded. I do not see an error in expert writing, but when I put the date last year, does the indicator still work? While it should not work according to the coded date. Can anyone help?
datetime expiryDate = D'10.04.2015 00:00:00'; //change as per your requirement
No now there are two under if(TimeCurrent)
{} it only needs to be one {
You need one opening bracket { then some code; } and then a closing bracket.Thank you. I think this is the best programming site.
OnStart is the event for scripts.