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.
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.
MAPeriod = input(21, title="MA Period")
MA = sma(close, MAPeriod)
plot(MA, color=color.purple, linewidth=4)