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
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
Reply
drshoe TraderAJL
@TraderAJL, I just updated my code. there was an updated version i forgot to publish.
Reply
Thanks, how would I change it if I would like the 8MA displayed versus the 5MA?
Reply
to use exponential average. simply change "sma" into "ema"
Reply
@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
Reply
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
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out