Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2006, 11:11 PM
Member
 
Join Date: Oct 2006
Posts: 59
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 10-09-2006, 11: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 08:04 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 10-10-2006, 11:33 AM
Member
 
Join Date: Oct 2006
Posts: 59
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Forum Jump

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


All times are GMT. The time now is 01:08 PM.



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