Simple Moving Averages

You can plot 10 simple moving averages with this script. special thanks to worldsapart89 for the original script.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


hi there.... i want a script with 9ema, 50sma, 100sma, 150sma, 200sma. I tried to copy part of urs and paste to a script i was doing but didn't work... kept giving me error codes mainly for all the colors. Do you have an idea why copying and pasting part of ur code to make my script is not working? Thanks in advance for ur help
+37 Reply
drpatel77_ drpatel77_
@drpatel77_, actually i got it... thanks.
+7 Reply
manojs1969 drpatel77_
@drpatel77_, How do you rectified that??
+6 Reply
manojs1969 drpatel77_
@drpatel77_, I am also facing same issue..
+1 Reply
drpatel77_ manojs1969
@manojs1969, hi there.... sorry i never look at message on trading view.. just went deep diving to see and saw ur messages... if u r still wanting to know let me know.. i think i just found another indicator that had all what i needed.... msg me if u still looking for
+3 Reply
manojs1969 drpatel77_
@drpatel77_, Hello, Thanks. I have already rectified that. I will be glad if can share your new indicator. Thanks.
TVincentG1 drpatel77_
@drpatel77_, hi is this applicable to an MT5 platform
Hi there stocksinboxx, how do i copy this into a trading platform? I'm in the UK and with IG Index, FXCM and ETX Capital, thanks.
+20 Reply
how do you add this script to mt4?
+14 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out