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 02-20-2006, 10:54 PM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
keris2112 is on a distinguished road
Multi Timeframe Indicators

Hi all,
I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to plot the Daily RSI on your 5 Min. chart.

When I put together the Daily Volitily Breakout indicator, that sorta did what I wanted in that it allowed you to add it to any timeframe (Daily or less) and see where the daily breakout point would be. The problem was that it was limited to only showing the Daily value.

About 2 weeks ago I came across Igorad's Price Channel Stop indicator and it seemed to do what I wanted (with regard to mulitiple timeframes). I started trying to use the Price Channel indicator as a template, adding code from other indicators and tweaking it to work within the new structure, but they never seemed to work. (I'm still not a very good coder.) Then last night I had a "breakthrough": If I can't figure out how to properly add the code from the other indicators, why not just Reference them, with their iName or iCustom? So, that's what I did. And, it works great.

Here are a few things to keep in mind when using these:
1) TimeFrame is the input you use to specify what timeframe to pull the data from.
2) You must set TimeFrame in minutes (1,5,15,30,60,240,1440,10080,43200)
3) By default, TimeFrame is set to 0, which means that it will use whatever the current timeframe is, i.e it will act as the original indicator.
4) If you set TimeFrame to anything other than 0, it must be >= current timeframe. (In other words, don't use a M15 PSar on an H1 chart. The values won't be correct. An H1 PSar on an M15 chart works properly.)

I've setup 5 Multi-TimeFrame (MTF) indicators to use as examples. You can open them up and use the code as a template so that you can make any existing indicator MTF. Please don't post asking for other indicators to be made, as the thread will soon turn into one big 'please do this for every MT4 indicator'. It's really, really simple to do, and if you don't know how to code, spend a week reading Coder Guru's MT4 programming guide and you'll be able to do it.

If I have time, I'll add more. Hopefully others will add their MTF conversions to the thread.

Multi-TimeFrame set 1 contains:
#MTF_MovingAverage.mq4
#MTF_PSar.mq4
#MTF_RSI.mq4
#MTF_MACD.mq4
#MTF_CCI.mq4

The attached chart is the following:
M5 Chart with LimeGreen PSar
M15 PSar
M60 SMA(13)
H4 CCI
M30 MACD
H1 RSI

Well, I hope these come in handy for some of you. Thanks Igor, for your fantastic coding skills. I've learned a lot just by studying your code.

Keris

EDIT:
Added #MTF Set 2.zip on 3/4/06 ---- (Bollinger Bands, Juice, Linear Price Bar, Price, Stochastic)
Attached Images
File Type: gif #mtf example.gif (17.0 KB, 58481 views)
Attached Files
File Type: zip #MTF Set 1.zip (6.6 KB, 9081 views)
File Type: zip #MTF Set 2.zip (9.2 KB, 7598 views)

Last edited by keris2112; 03-05-2006 at 03:11 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
  #2 (permalink)  
Old 02-20-2006, 10:54 PM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
keris2112 is on a distinguished road
Multi Timeframe Indicators

This was keris2112
Quote:
Hi all,
I've been wanting to have the ability to plot indicators from different timeframes on my chart,

Hey, it's me, Linuxser...

Hi.
I made a copy of first post to maintain thread order and to post the link with the MTF pack that includes igorad's fix. I had to do that to avoid the need to edit keris2112 first thread post.

MTF UPDATED SET is at: http://www.forex-tsd.com/224530-post2319.html


Bi

Linuxser

Last edited by Linuxser; 09-27-2008 at 11:50 PM.
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-21-2006, 12:12 AM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
keris2112 is on a distinguished road
Linear Price Bar

Here's one more MTF indicator. It's based on a custom indicator (you can view the code to make your own).

It's called #MTF_LPB.mq4 (Linear Price Bar) Here's the link to the thread for info on the indicator: Linear Price Bar

Attached are 2 indicators. You need both in your indicators folder as the MTF version references the original indicator.

Linear Price Bar.mq4
#MTF_LPB.mq4

Keris
Attached Files
File Type: mq4 Linear Price Bar.mq4 (2.7 KB, 3165 views)
File Type: mq4 #MTF_LPB.mq4 (3.8 KB, 2996 views)
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
  #4 (permalink)  
Old 02-21-2006, 04:49 AM
Senior Member
 
Join Date: Oct 2005
Posts: 223
sailor is on a distinguished road
thanks for info very usefull for me :-)

Sailor
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
  #5 (permalink)  
Old 02-21-2006, 07:13 AM
TheShanghai's Avatar
Junior Member
 
Join Date: Dec 2005
Posts: 23
TheShanghai is on a distinguished road
Just wanted to say 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
  #6 (permalink)  
Old 02-21-2006, 03:27 PM
Member
 
Join Date: Oct 2005
Location: Germany
Posts: 61
schwager is on a distinguished road
Mtf

Hello!
one of me!
Attached Files
File Type: mq4 MTF-Dinapoli_Target.mq4 (2.3 KB, 3807 views)
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
  #7 (permalink)  
Old 02-21-2006, 06:14 PM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
keris2112 is on a distinguished road
Quote:
Originally Posted by schwager
Hello!
one of me!
Thanks schwager!

Also, since Dinapoli Targets is a custom indicator, could you add the original DinapoliTargets.mq4 file to your post. People are going to need both files to make the MTF version work.

Keris
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
  #8 (permalink)  
Old 02-21-2006, 07:26 PM
Member
 
Join Date: Oct 2005
Location: Germany
Posts: 61
schwager is on a distinguished road
Dinapoli

ups sorry.........

http://www.forex-tsd.com/attachments...4?d=1129363521
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
  #9 (permalink)  
Old 02-22-2006, 02:39 AM
ycomp's Avatar
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
maybe this is helpful to you

I wrote one for demarker the other day. I think I scrutinized it but can't remember exactly. Anyhow easy enough to check, just compare it with a real demarker on another chart.

Just change the getDeMarker function to getRSI() or getCustomIndicator() (and use iCustom in that function) or whatever, if you want to base it on another indicator.
Attached Files
File Type: mq4 MTF_DeMarker.mq4 (2.6 KB, 2743 views)

Last edited by ycomp; 02-22-2006 at 01:49 PM.
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
  #10 (permalink)  
Old 02-22-2006, 08:07 PM
Junior Member
 
Join Date: Nov 2005
Posts: 10
vimpson is on a distinguished road
Thanx Keris, you put well!!
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

Tags
#MTF_WPR.mq4, ABSOLUTE STRENGTH, absolute strength indicator, AbsoluteStrength, AbsoluteStrength_v1.1_mtf, ADX MTF, AlaskanPipAssassin, atr channel, BBMACD, bbsqueeze, bh-ergodic, center of gravity, Coeffoline, custom candle, customcandle, Damiani_volatmeter v3.2, Envelopes, FanSimple4en, fncd indicator, forex, forextrend_v2, fxst3cci, FxTrend v2, fxtsd, histogram, indicators, megatrend, MegaTrend.mq4, mladen, mtf absolute strength, mtf adx, mtf adx indicator, mtf bband, MTF candle, mtf ema, MTF indicator, mtf LaGuerre, mtf ma, mtf macd, mtf megatrend, mtf parabolic, MTF PSAR, mtf qqe, MTF RSI, mtf rsx, mtf stochastic, MTF trendenvelopes, mtf_4tf_has_bar2m, mtf_megatrend_barm_4tfnext, multi, multi time frame, MULTI TIME FRAME indicator, multi time frame stochastic, multi timeframe, multi timeframe indicator, nonlagma v7, NonLagMA_v7.1, NRTR_Rosh_v2eAlert_mtf.ex4, open interest, pipnailer, PowerTrend, powertrend.mq4, qqe mtf, search, TheBuyZoneForex.pdf, timeframe, TrendEnvelopes_v5, trendline, TRO MultiPair, tro sak multipair, voltychoppy, XO_A_H


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
Defender05
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
get current timeframe () or the like.. arm73c05 Metatrader 4 3 02-21-2007 08:51 PM
Timeframe / Shift divergence_trader Metatrader 4 2 02-12-2007 02:04 PM
Multi EAs, multi brokers, same computer hhsmoney General Discussion 6 11-16-2006 09:32 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 10:23 PM.



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