TradingView
RicardoSantos
28 Nis 2015 08:43

[RS]MTF Multiple Moving Averages V0 

Euro Fx/U.S. DollarFXCM

Açıklama

Multiple moving averages with same interval in candle bar smoothness over multiple time frames.
option to show/hide the level of resolution for the mtf's default shows 1 ma can go up to 8th resolution.
option for manual input timeframes and configure ma.
Yorumlar
sbs
Hi Ricards, I am not sure how to use it. I am looking to plot 50/200 Daily MA on my 1 hour timeframe chart. Is it possible with your indicator?
rez120
Hi, Ricardo.

This indicator looks great.

I was wondering if you can help me out with MTF MAs, just regular ones, but with ability to have exponential or standard.
I need three to four MAs in one...just like a regular indicator but for MTF, just like what you did for this indicator.

I hope I make sense.
RicardoSantos
Charles
Hi Ricardo, I like the idea! Awesome work man!

What brought me to this was a search for multiple moving averages in multiple time frames.

Could you code this separately for me: Similar idea to what you are using but instead of showing just one MA (i.e. length=10) and other many other time frames for jsut that one MA, I'd be interested in seeing 5 separate MAs and the time frame of my choosing.

For example, on my chart, I'd like to see the 10, 21, 55, 100, 200 MA in both Daily and Hourly timeframe. No need to get fancy with the colour coding as I'd make the Daily and Hourly the same colour, but the Daily would have a thicker line (I guess you can make all these things user adjustable).

So quite similar to what you have already done, but instead of looking at only one MA in multiple resolutions, we would be able to look at many MAs in however many time frames we selected for that MA (e.g. we could choose to see 100 period MA in 10M, 240M and W; 21 period MA in 15M, 30M 60M; 200 period MA in D, W, M).

Does this make sense?
RicardoSantos
@Charles, try this as a framework and you can expand it as you like:

study('MTF MA' )
src = input(close)
length = input(10)
tf = input('D' )
ma = sma(src, length)
tf_ma = security(tickerid, tf, ma)
plot(tf_ma)
Daha Fazla