
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
Hi,
How do I get the output of following functions in seconds as compared to TimeStamp in MQL5?
int OnCalculate(..... const datetime &Time[]...........) //just cut short the oncalculate function. Using the default one
{
Print("Time=============",Time[0]);
Print("TimeCurrent=============",TimeCurrent());
return(rates_total);
}
The output I get in MQL5 is like
TimeCurrent=============2012.06.07 21:29:41
But in MQL4 I get
TimeCurrent=============1339108206
I want the output as like MQL4 in MQL5 . How do I achieve it?
Thanks.