Please, provide the source which demonstrates this issue.
Rosh:
Please, provide the source which demonstrates this issue.
Please, provide the source which demonstrates this issue.
Hello Rosh
//+------------------------------------------------------------------+
void OnTick()
{ MqlDateTime dt;
Alert(dt.hour);
}
//+------------------------------------------------------------------+
the result is always zero
You didn't initialze the dt value, try this:
void OnTick() { MqlDateTime dt; TimeCurrent(dt); Alert(dt.hour); }
Rosh:
Thank you so much , it is working now ......All the best wishesYou didn't initialze the dt value, try this:
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
Hello
After the last update MqlDateTime is not working and returning 0 all the time .