TradingView
manifresca
25 sty 2019 03:59

50/100/200 Moving Averages (Pine Script For Copy) 

S&P 500SP

Opis

by fresca

SCRIPT LANGUAGE

Copy script below and adjust based on your preferences.

-function (change function from "sma" to "ema", "wma" and more)
-length (25 Day, 150 Day or add more averages to the three in this script.)
-color, (red, yellow, etc. or use color hex codes i.e. #FEDA15, #FFAD8F, etc.)
-transparency (set to desired level 1-100)

Or add more options.

RESOURCES

Color hex codes site: canva.com/colors/

Trading View Pine Script Editor Reference Guide: tradingview.com/study-script-reference/
Komentarze
ginlin84
Hi, how to write script with multiple moving average in specific time frame?

example: 1 hour time frame: show MA10 and MA20, Daily time frame: show MA20, MA50 ?
Landu47
Hi, How do I add an offset to these moving averages?

Example SMA with period 10 with a offset of 5
LOGITRADER
dude for smooth moving averages what are the initials.
manifresca
@LOGITRADER, tbh i have no clue. the full script is pasted above.
ashyadav
Great
luis.filipe
Thank you very much. I use 3 MAs, different than yours. And with TV lowering the basic plan indicators to 2, I was trying to find something to do to have all my indicators. And I was able to work from your script to make it with the ones I use and it worked great. Thank you.
dhruvvansjalia7
THANKS
thebrokengroup
Thanks for this! How do you test a pine script like this?
abolfathimeherdad
Więcej