Expire period ?

 

hello ,

please , how can i add an expire period to my EA that found in attachmet ?

what is the function ? how can i add it ? and how can i sure from its working?

thanks alot

Files:
 
dr_waleed:
hello ,

please , how can i add an expire period to my EA that found in attachmet ?

what is the function ? how can i add it ? and how can i sure from its working?

thanks alot

There is thread about it here.

And you may see Codersguru site as well concerning this subject http://www.metatrader.info/node/132

 

Thanks guys

i learn the mql4 and expert programing

just i want to know every thing

thanks alot

 
dr_waleed:
Thanks guys

i learn the mql4 and expert programing

just i want to know every thing

thanks alot

Yes, to protect an EA is the first thing to learn...

 

Hmm............................................... ..

Let's say you want to protect profitable EX4 file ...

You must change int start() section...

//-------->

int start()

{

if(Year()>2006 || Month()>7)

{

Alert("This EA was expired! Please re-new your licence.");

return(0);

}

// put code here

}

//-------->

It will work from 2006.01to 2006.07...

THNX

Raff