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
Release Notes: added options in settings where you can turn on and turn off moving averages
Release Notes: Fixed miscalculation of the 5day MA
Release Notes: fixed 5 day MA miscalculation
Remove from Favorite Scripts Add to Favorite Scripts
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
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out