Orderopen time in mql5

 

I ma trying to find out order open time for a pending order> im using this function but still  don't get accurate results


       
  long time1;
 datetime time_setup=OrderGetInteger(ORDER_TIME_SETUP,time1 );


I've used order select to select the order.

Any help?

 
Peter Kaiza:

I ma trying to find out order open time for a pending order> im using this function but still  don't get accurate results

I've used order select to select the order.

Any help?

I've checked this page: https://www.mql5.com/en/docs/trading/ordergetinteger

Looks like you've got the function format wrong...

Documentation on MQL5: Trade Functions / OrderGetInteger
Documentation on MQL5: Trade Functions / OrderGetInteger
  • www.mql5.com
Returns the requested order property, pre-selected using OrderGetTicket or OrderSelect. Order property must be of the datetime, int type. There are 2 variants of the function. 2. Returns true or false depending on the success of the function. If successful, the value of the property is...
Reason: