PDA

View Full Version : Backtest with Indicators from other timeframe


Mana
27-04-10, 10:30 AM
Hello,

I have a question and dont know how to find out.

When I write a Expert Advisor Programm and use for example Moving Average from 5 and 15 min Chart and make a backtest with 1 h chart did i get then the right values for the moving Averages, also when I tet the 1 h chart?

The code in my Expert Advisor look so:

double ma5=iMA(NULL,5,20,0,0,0,0);
double ma15=iMA(NULL,15,20,0,0,0,0);

I dont know now if the Metatrader calculate me right values in the backtester when I use other timeframes in the EA?
Can someone please explain me if I am right?