Download MetaTrader 5

Calculate Order open time

To add comments, please log in or register
I_Need_Money
96
I_Need_Money  

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.

Carl Schreiber
7092
Carl Schreiber  
if (TimeCurrent() – OrderOpenTime() > 60 ) {
.....
}

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

I_Need_Money
96
I_Need_Money  
gooly:

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

Thank you.
To add comments, please log in or register