Wrong TimeCurrent()?
1. Read help topic https://www.mql5.com/en/docs/dateandtime/timecurrent
2. Did you get some errors in Experts journal in your client terminal?
Documentation on MQL5: Date and Time / TimeCurrent
- www.mql5.com
Date and Time / TimeCurrent - Documentation on MQL5
alexvd:
There are no any error message in Journal at that time.
1. Read help topic https://www.mql5.com/en/docs/dateandtime/timecurrent
2. Did you get some errors in Experts journal in your client terminal?Unfortunatelly I can not reproduce your situation.
Try to run this EA.
//+------------------------------------------------------------------+ //| TimeCurrentOnTick.mq5 | //| 2009, MetaQuotes Software Corp. | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "2009, MetaQuotes Software Corp." #property link "http://www.mql5.com" #property version "1.00" //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- Print(TimeCurrent()); } //+------------------------------------------------------------------+
I try Print(TimeCurrent()); but it seem not right, please see pic:
Why?