![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I’m just trying to get the datetime of a vertical line
See above.
Even that code you provided is not working. the timestamp it brings back is almost current. Do you have any other ideas?
.![](https://c.mql5.com/3/300/Untitled__1.png)
Even that code you provided is not working. the timestamp it brings back is almost current. Do you have any other ideas?.
What's wrong with what I posted?
What's wrong with what I posted?
That’s the same thing the other guy posted
Your right, it is basically the same as JC's.
So the fact that 2 people have given you the same code should tell you that there is a problem with how you are implementing it.
You are getting the time value of a different object to what you intend, so check your code and correct it.