Need A Quick Help: iTime() shows ZERO...

 

Hi, everyone,

So, I have a following situation, I'm making an EA for the M5 timeframe - and this is where i test it, but i want to be collecting some data from the M1 frame meanwhile...

when I run it in test the iTime(NULL,1,0) gives me zero... but the iTime(NULL,5,0) give me the legit 5 minute bar time..

does it mean i can't get data from frames smaller than the my script runs on? is it just a glitch of the testing mode and in the real trading it will allow me collecting the data from the lower frame?

how do i make it possible to collect M1 data while running a script in M5 mode?

thanks..

 

I use this:

iTime(Symbol(),PERIOD_M1,0);
 

hmm.. doesn't seem to be working.. the PERIOD_M5 does, though.

I wonder if that has something to do with the Tester set up.. like - it doesnot collect the M1 data while testing in the M5 mode for any reason... and I probably should tweak some settings somewhere?

any ideas?

 

it's doesn't work by backtest

 
Tester Limitation: You can not get bar zero data in the tester for other timeframes or pairs. Try:
iTime(Symbol(),PERIOD_M1,1);
Reason: