Forex
Google
New signals service!

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2006, 10:11 PM
Member
 
Join Date: Oct 2006
Posts: 56
Jovager is on a distinguished road
Trading two timeframes

Hello,

Is it possible in an expert advisor, to have 2 different timeframes conditions, for example : buy if MACD (daily) is higher than previous and MACD (hourly) is higher than previous.

Thanks for help.

Jo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-09-2006, 10:29 PM
alx's Avatar
alx alx is offline
Junior Member
 
Join Date: Jul 2006
Posts: 9
alx is on a distinguished road
Multiple TF

Hi

The answer is yes. Some functions have parameter "timeframe". For example:

double iMA( string symbol, int TIMEFRAME, int period, int ma_shift, int ma_method, int applied_price, int shift)

MA1 = iMA(NULL,PERIOD_M30,FastMA,0,MODE_EMA,PRICE_MEDIAN ,i)
MA2 = iMA(NULL,PERIOD_D1,SlowMA,0,MODE_EMA,PRICE_MEDIAN, i)

Here we have two moving averages: first from half hour chart, second from daily one. Painting them together is quite complicated, but for EA it does not really matter.

hope this helps
alx

Last edited by alx; 10-10-2006 at 07:04 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-10-2006, 10:33 AM
Member
 
Join Date: Oct 2006
Posts: 56
Jovager is on a distinguished road
Thanks alx.

It's really helpful.

Jo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of Many Timeframes dvarrin Metatrader 4 5 06-10-2007 12:42 AM
several timeframes in one MTF indicator fxbs Indicators - Metatrader 4 0 05-18-2007 06:46 AM
Different timeframes for daily EA rjay Metatrader 4 3 12-29-2006 04:16 PM
multiple timeframes sailor Suggestions for Trading Systems 20 02-21-2006 04:04 AM


All times are GMT. The time now is 12:25 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.