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()); } //+------------------------------------------------------------------+
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 try Print(TimeCurrent()); but it seem not right, please see pic:
Why?