drshoe

Multi Time Frame Compatible Simple Moving Average

Displays 5, 20, 50, and 200 days moving averages on any chart regardless of the chart's resolution.It makes sure you see the same moving average regardless the resolution of your chart or your timeframe
發布通知: added options in settings where you can turn on and turn off moving averages
發布通知: Fixed miscalculation of the 5day MA
發布通知: fixed 5 day MA miscalculation
開源腳本

秉持真正的TradingView精神,該腳本的作者將其開源發佈,因此交易者可以理解和驗證它。為作者加油!您可以免費使用它,但是在發佈中重複使用此程式碼受網站規則的約束。您可以把它加入到常用以在圖表上使用它。

想在圖表上使用此腳本?

評論

Do you know of a way to only show certain moving averages by time frame. For instance if I am in the daily I want to see , 10, 20, 50 etc., but if I am in the weekly timeframe, only the 50 day and 200 day .... ? Thank you in advance
回覆
drshoe TraderAJL
@TraderAJL, I just updated my code. there was an updated version i forgot to publish.
回覆
Thanks, how would I change it if I would like the 8MA displayed versus the 5MA?
回覆
to use exponential average. simply change "sma" into "ema"
回覆
@drshoe, Thank you. how would I have to recalculate res5 to display 8 instead of a 5 day average? I have difficulties understanding this part. Thank you
回覆
drshoe TraderAJL
@TraderAJL, good catch!, the MA5 is actually NOT correct, it should be 390/30*5 = 65. so for 8 day MA it should be 390/30*8 = 104. I've updated the code
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 私人訊息 在線聊天 登出