Get handle for Moving Average indicator from PERIOD_M15 chart

 

Hi Coders!

I'm working on my EA.

I would like to get the handle for the Moving Average indicator:

maHandle=iMA(_Symbol,_Period,MA_Period,0,MODE_EMA,PRICE_CLOSE);

It works well on Strategy Tester on EURUSD M1 chart.

But I would like to get the handle for the Moving Average indicator from the PERIOD_M15 chart. I tried this code:

maHandle=iMA(_Symbol,PERIOD_M15,MA_Period,0,MODE_EMA,PRICE_CLOSE);

After this change, I get these error messages at the Strategy Tester Journal window:

2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:59:59
2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:59:47
2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:59:42
2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:59:38
2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:59:34
2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:59:30
2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:59:25
.
.
.
2010.06.27 17:53:12     Core 1  Old tick EURUSD 2010.06.02 00:37:28

The test started from D'2010.06.02 00:00:00'. The error messages are from 2010.06.02 00:37:28 to 00:59:59. After, the Expert Advisor works well.

Does anybody know why I get this messages? Do I have to do something, if I would like to get handle for Moving Average from another timeframe?

I would be happy if you could help me.

Thank you in advance!

Relative

 

Old Tick error has been fixed. Wait for updated build

 
stringo:

Old Tick error has been fixed. Wait for updated build

Great!

Thank you Stringo!