Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
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 02-11-2007, 12:12 AM
Junior Member
 
Join Date: Feb 2006
Posts: 9
divergence_trader is on a distinguished road
Timeframe / Shift

Hi... quick question.

I'm working on an expert which trades in the main using 30min & 4h indicators. However It also has a 1min aspect so I run it on a 1min chart.

When calling the value of an indicator from another timeframe with a different shift to the current bar, i.e:

PHP Code:
bmom=iMomentum(PERIOD_H4,0,14,PRICE_CLOSE,1); 
Is it giving me the data from (in this case) the value of momentum on the previous 4h bar, or the value of 4h momentum on the previous 1min bar?

Thanks!
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 02-11-2007, 02:57 AM
Junior Member
 
Join Date: Jan 2006
Posts: 15
fleshmorph is on a distinguished road
It's giving you the value of the previous PERIOD_H4 bar. However, the function call should be:

bmom = iMomentum(NULL,PERIOD_H4,14,PRICE_CLOSE,1);

Last edited by fleshmorph; 02-11-2007 at 03:06 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 02-12-2007, 02:04 PM
Junior Member
 
Join Date: Feb 2006
Posts: 9
divergence_trader is on a distinguished road
Thank you!
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
Help... how do I shift to the right by one bar scott TTM Indicators - Metatrader 4 7 03-12-2008 02:09 PM
get current timeframe () or the like.. arm73c05 Metatrader 4 3 02-21-2007 08:51 PM
Get current timeframe The_N Metatrader 4 2 09-08-2006 12:40 PM
Multi timeframe through a shift calculation? wananohoshi Indicators - Metatrader 4 2 08-06-2006 11:02 AM


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



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