Problem using MqlDateTime
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:
Hello
After the last update MqlDateTime is not working and returning 0 all the time .