Forex



Go Back   Forex Trading > Downloads > Indicators - 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 08-05-2006, 08:03 PM
Junior Member
 
Join Date: May 2006
Posts: 26
wananohoshi is on a distinguished road
Multi timeframe through a shift calculation?

Hi everyone,

I am trying to get the readings of an H4 indicator through a H1 one. I appreciate the existence of MTF indicators, but think that there should be a more appropriate way to get the indicator readings at a different timeframe. I mean, something of the sort (this code does not do the work, unfortunately, as compared to the readings of a real #MTF indicator):

int shift4H = shift/4+1;
while(Time[shift]>Time[shift4H]) {
offset4H--;
}
double value = iCustom(Symbol(),PERIOD_H4,..., offset4H);

The benefits of the above code include fewer calculations and the possibility to use it with non-custom indicators (for example, the built-in Stochastic Oscillator/CCI/RSI, etc.). It would also make the creation of multi timeframe-aware indicators much easier and effortless, I guess.

But unfortunately I cannot get it to work...

Anyone tried to do what I am? Please share your experience!

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 08-05-2006, 10:15 PM
Senior Member
 
Join Date: Feb 2006
Posts: 587
Michel is on a distinguished road
Try this :
PHP Code:
shiftH4 iBarShift(Symbol(), PERIOD_H4Time[shift], false);
value iCustom(Symbol(),PERIOD_H4,..., shiftH4); 
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 08-06-2006, 11:02 AM
Junior Member
 
Join Date: May 2006
Posts: 26
wananohoshi is on a distinguished road
That's exactly what I was trying to do. Really precious piece of knowledge. Thank you so much for your help!

Take care.
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
Multi Timeframe Indicators keris2112 Indicators - Metatrader 4 3079 Yesterday 10:28 AM
calculation question? antone Setup Questions 2 03-12-2007 03:19 AM
Timeframe / Shift divergence_trader Metatrader 4 2 02-12-2007 02:04 PM
Indicator calculation? cja Setup Questions 5 02-12-2007 10:51 AM
Multi EAs, multi brokers, same computer hhsmoney General Discussion 6 11-16-2006 09:32 PM


All times are GMT. The time now is 01:20 AM.



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