How to return Time of an Order

 

Hello,

I have a Simple Question that may seem elementry to you.

How do i wright a Line of code that shows me the Time of Opening of an Order?

i know about the time Operators, but they all can return the time of a Bar, not time of an Order Opening.

even when i use TimeCurrent() in the Function of OrderOpening and than want to use this variable in another Function a few minutes after

still the Variable shows the current time. not the time of OrderOpening.

i know this Question May be small for you, But dose anyone have a solution for me? 

 
kriss.ro: How do i wright a Line of code that shows me the Time of Opening of an Order?

Perhaps you should read the manual. Select the order, read the time.
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

 

I did read the book of mql4. it seems it is not as complete as the website. the book dose not mention this subject.

for the people who read this in the future and have the same question, the complete answer is this:

first OrderSelect() and after that OrderOpenTime() .

 
If you do have questions while using your MetaEditor Terminal, you should Select an item in your code and press F1.
It will pull up the direct definition and related topics; it really explains a lot.
If you can't find your answer there, you can always code a Test Program and Print() your values.
Reason: