Download MetaTrader 5

Are these two line the same?

To add comments, please log in or register
Morteza Khorasani
111
Morteza Khorasani  
if (Minute()==0)
{

}

vs.

if (TimeMinute(TimeCurrent())==0)
{

}


 

whroeder1
16572
whroeder1  
  1. Perhaps you should read the manual. Then you would know they are. (And in the tester since February 3, 2014 Build 600.)
  2. And if there is no tick during the first minute, your code breaks. New candle - MQL4 forum
To add comments, please log in or register