#include <fxsaber\Calendar\Calendar.mqh> // https://www.mql5.com/ru/code/32430 input int inAmountNews = 5; void OnTick() { CALENDAR Calendar; Calendar.Set(); Comment(Calendar.ToString(0, inAmountNews)); }
Thank you very much for your precious help!
Hi, I have a question, I don't know if it's possible. I've been trying to figure out how to do this all afternoon, but I'm struggling, I'm a beginner in mql5.
I just want to display the date and time of the announcement, like on the screen, is it possible?
Files:
fzfezf.jpg
15 kb
GREED #:
I just want to display the date and time of the announcement, like on the screen, is it possible?
#include <fxsaber\Calendar\Calendar.mqh> // https://www.mql5.com/ru/code/32430 void OnTick() { CALENDAR Calendar; Calendar.Set(); Comment(Calendar[0].time); }
![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
Thank you in advance for your help!