BigBitsIO

Scripting Tutorial 1 - Simple Moving Average

This script is for a simple moving average indicator. It is meant as an educational script with well formatted styling, and references for specific functions.
Release Notes: This script is for a simple moving average indicator. It is meant as an educational script with well formatted styling, and references for specific functions.
Release Notes: Snapshot changed.
Release Notes: Renamed the study, and forced version 4
Release Notes: Snapshot update.
Remove from Favorite Scripts Add to Favorite Scripts
Like and follow!

💻 Website: https://www.bigbits.io
📺 YouTube: https://www.youtube.com/bigbits
🎮 Discord: https://discord.gg/rapMn4z
🐦 Twitter: https://twitter.com/BigBitsIO
💸 Save $30 on TradingView Paid Plan: https://bit.ly/2CaRfjs

Comments

study(shorttitle = "SMA - ST1", title="Simple Moving Average", overlay=true)
MAPeriod = input(21, title="MA Period")
MA = sma(close, MAPeriod)
plot(MA, color=color.purple, linewidth=4)
Reply
Thanks for the tutorials man. Your the best.
Reply
thx for those tutorial playlists. much appreciated.
Reply
I need help coding a 8 sma and 15 sma crossing, I want it to print a colours circle/dot. I want the indicator to draw the sma data and display the dot on the 4hr chart
how can i do this??

warm regards
Dread.
Reply
Thanks for doing this with us. I've wanted to learn since I entered the space. Very hopeful that I can write my own scripts & back testing of strategies. Will you go that far?
Reply
BigBitsIO Squeaker
@Squeaker, I plan on doing strategies yes. I'm doing YouTube video series for these scripts so if you don't understand anything in the scripts, check those out.

https://www.youtube.com/watch?v=wBx0ebKJcG0&%3Blist=PLM0BBafRCnRNhvMxyiqScZWV_h41raut6
+1 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works 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 Ideas Published Followers Following Private Messages Chat Sign Out