TradingView
BigBitsIO
Sep 20, 2019 5:23 PM

Scripting Tutorial 1 - Simple Moving Average 

Basic Attention Token / BitcoinBinance

Description

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.
Comments
RozaniGhani-RG
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)
Confucius-The-Great
Thanks for the tutorials man. Your the best.
JoshuaMcGowan
thx for those tutorial playlists. much appreciated.
Dread_Pirate_Roberts
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.
Squeaker
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?
BigBitsIO
@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.

youtube.com/watch?v=wBx0ebKJcG0&list=PLM0BBafRCnRNhvMxyiqScZWV_h41raut6
More