Expired period for indicator - page 2

 

Thx alot

Thanks alot guys

Where should I add this code on the metaeditor?

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);

}

 
granpa:
is it possible to convert ex4 to mq4?

If you have money everything is possible!

 

jut put it below your int_start()....because, there is only one int_start() in the code.

 
nostrade:
Thanks alot guys Where should I add this code on the metaeditor?

After :

int start()

{

string expire_date = "2007.6.30";

datetime e_d = StrToTime(expire_date);

if ((TimeCurrent()) >= e_d)

{

Alert ("Your License Has Been Expired!!");

return(0);

}

......

you try to sell your indicator and you have basic problem with programming???

 
Bongo:
After :

int start()

{

string expire_date = "2007.6.30";

datetime e_d = StrToTime(expire_date);

if ((TimeCurrent()) >= e_d)

{

Alert ("Your License Has Been Expired!!");

return(0);

}

......

you try to sell your indicator and you have basic problem with programming???

lol .. i am not trying to sell any indicators.. just wanna learn something new here..

 
 
 
nostrade:
Be positive my friend. We are all here to learn.

I'm 100% positive...

We are all here to learn how to create some function, best combination

of indicators to open a position, etc.

If newbies is comming with this question...lol...