How to print a price at a specific hour with down-to-the-second accuracy

 

Hi everyone,

I am have recently approached the use of mql5

I was wondering to print prices of a stock at a specific hour with down-to the second accuracy.

For example I need  to print Tesla prices at 12:00:05; at 12:00:06 and at 12:00:16.

Please may you suggest to me a smart way to manage these kind of situations?

Thank you 



    

 
ALE8500: I am have recently approached the use of mql5. I was wondering to print prices of a stock at a specific hour with down-to the second accuracy. For example I need  to print Tesla prices at 12:00:05; at 12:00:06 and at 12:00:16. Please may you suggest to me a smart way to manage these kind of situations?    

Just read the Tick history which has timing to the millisecond.

Documentation on MQL5: Timeseries and Indicators Access / CopyTicks
Documentation on MQL5: Timeseries and Indicators Access / CopyTicks
  • www.mql5.com
CopyTicks - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5