Forum

Difference in mt5 values compared to mt4

I have a mql4 and a mql5 indicator which does nothing but displays spread , swapshort and swaplong value on screen. I noticed that mql5 displays different values than mql4. I am confused. Which one is right? I am using alpari uk demo account for both mt4 and mt5. Here's my mt5 indicator: int

TimeCurrent output in seconds elapsed in MQL5

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]);