Calculate Order open time

 

I was looking to add a time variable to a trailing stop EA, but its a bit over my head, any help is appreciated.

 

if (Current Time – OrderOpenTime > 60 Seconds) {
.....
}

 Thank you in advance.

 
if (TimeCurrent() – OrderOpenTime() > 60 ) {
.....
}

just look in the mt4 reference under datetime: seconds since 1.1.1970

 
gooly:

just look in the mt4 reference under datetime: seconds since 1.1.1970

Thank you.
Reason: