Download MetaTrader 5
To add comments, please log in or register
Do you want to write a technical indicator? Find solution in MQL5 Reference!
I_Need_Money
96
I_Need_Money 2014.10.10 16:16 

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
5938
Carl Schreiber 2014.10.10 18:13  
if (TimeCurrent() – OrderOpenTime() > 60 ) {
.....
}

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

I_Need_Money
96
I_Need_Money 2014.10.10 21:47  
gooly:

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

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