RicardoSantos

[RS]MTF Multiple Moving Averages V0

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.
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
study("[RS]MTF Multiple Moving Averages V0", overlay=true)
showTF = input(1, minval=1, maxval=8)
tf1 = input('15')
tf2 = input('30')
tf3 = input('60')
tf4 = input('240')
tf5 = input('D')
tf6 = input('W')
tf7 = input('M')
tf8 = input('12M')

ma_src = input(close)
ma_length = input(4)

mtfma1 = showTF < 1 ? na : security(tickerid, tf1, sma(ma_src, ma_length))
mtfma2 = showTF < 2 ? na : security(tickerid, tf2, sma(ma_src, ma_length))
mtfma3 = showTF < 3 ? na : security(tickerid, tf3, sma(ma_src, ma_length))
mtfma4 = showTF < 4 ? na : security(tickerid, tf4, sma(ma_src, ma_length))
mtfma5 = showTF < 5 ? na : security(tickerid, tf5, sma(ma_src, ma_length))
mtfma6 = showTF < 6 ? na : security(tickerid, tf6, sma(ma_src, ma_length))
mtfma7 = showTF < 7 ? na : security(tickerid, tf7, sma(ma_src, ma_length))
mtfma8 = showTF < 8 ? na : security(tickerid, tf8, sma(ma_src, ma_length))

plot(mtfma1, style=cross, color=close >= mtfma1 ? green : maroon, linewidth=2, join=true)
plot(mtfma2, style=cross, color=close >= mtfma2 ? green : maroon, linewidth=2, join=true)
plot(mtfma3, style=cross, color=close >= mtfma3 ? green : maroon, linewidth=2, join=true)
plot(mtfma4, style=cross, color=close >= mtfma4 ? green : maroon, linewidth=2, join=true)
plot(mtfma5, style=cross, color=close >= mtfma5 ? green : maroon, linewidth=2, join=true)
plot(mtfma6, style=cross, color=close >= mtfma6 ? green : maroon, linewidth=2, join=true)
plot(mtfma7, style=cross, color=close >= mtfma7 ? green : maroon, linewidth=2, join=true)
plot(mtfma8, style=cross, color=close >= mtfma8 ? green : maroon, linewidth=2, join=true)