Alpari (UK)'s Forex and CFDs Forum  

Go Back   Alpari (UK)'s Forex and CFDs Forum > MetaTrader 4 > Expert Advisors and MetaQuotes Language 4

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 27-04-10, 10:30 AM   #1
Mana
Junior Member
 
Join Date: 27th April 2010
Posts: 1
Default Backtest with Indicators from other timeframe

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?
Mana is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Alpari (UK) Limited, 201 Bishopsgate, London, EC2M 3AB, United Kingdom
Authorised and regulated by the Financial Services Authority. FSA Register number 448002.