Download MetaTrader 5

iTime() seems with bugs

To add comments, please log in or register
abear
10
abear  

Hello, I found the iTime() seems with bugs in tester, when PERIOD M5 H1...... . iTime return 0 value.

At the time, PERIOD M1 H4... work well. My version is 610.

void OnTick()
  {
//---
  Print(iTime(Symbol(),PERIOD_M5,0));
  }
abear
10
abear  

Addiction Information: My Tester's Period is M1....

abear
10
abear  

I have checked the data again. It seems to be caused by my empty M5 history data. So, that would be normal. Sorry about open this post...

Alain Verleyen
Moderator
32401
Alain Verleyen  
abear:

I have checked the data again. It seems to be caused by my empty M5 history data. So, that would be normal. Sorry about open this post...

No need to be sorry, you found the answer yourself, it's the better way to learn
To add comments, please log in or register