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 have a bug on TimeGMT() function, the returned time is 1 hour more than real GMT time.
I'm at Bkk at this time (GMT +7), no summer time.
However TimeGMTOffset() return the good value
I solve the problem by this function :
datetime NewTimeGMT( MqlDateTime &dt )
{
datetime now = TimeLocal();
now += TimeGMTOffset();
TimeToStruct( now, dt );
return now;
}
An idea ?
Thanks.