Download MetaTrader 5

A short code to add expiration date and time for expert

To add comments, please log in or register
Morteza Khorasani
111
Morteza Khorasani  

I need a short code to add expiration date and time to my expert.

void OnTick()

{//1

if(!expire)

{//2

expert body

}//2

else

message("Expired");

} //1

bool expire()

{

if expiration date reached return(1)

else if exp date did not reached return(0)

}
whroeder1
16286
whroeder1  
Morteza Khorasani: I need a short code to add expiration date and time to my expert
  1. So what is your problem?
  2. Where is your code?
  3. We're not going to code it FOR you.
    We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Morteza Khorasani
111
Morteza Khorasani  
whroeder1:
  1. So what is your problem?
  2. Where is your code?
  3. We're not going to code it FOR you.
    We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.

I did not ask you to code it for me.

I had no opinion about how to code it.

I was just looking for a method.

I wanted to now how to check the expiration date in the section:

expiration date reached 

And I found it.

Thank you. 

To add comments, please log in or register