Download MetaTrader 5
To add comments, please log in or register
Any problems with the code? Find solution in documentation!
abear
10
abear 2014.03.12 03:20 

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 2014.03.12 03:26  

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

abear
10
abear 2014.03.12 03:42  

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
28518
Alain Verleyen 2014.03.12 08:20  
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