← All scriptsOverviewSource codeVersion history
IndicatorOpen sourceVersion 1
Moving Average
Moving Average
STSCRIPT / INDICATORMIT
script("Moving Average", kind="indicator")
input length = 20
input length2 = 50
ma = ta.sma(close, length)
ma2 = ta.sma(close, length2)
plot(ma, title="MA", color="#4CAF50", width=2)
plot(ma2, title="MA 50", color="#2962FF", width=2)Explore the source code ↓About this script
Moving Average Desktop
Source code
Read and review the complete source before using it in your account.
script("Moving Average", kind="indicator")
input length = 20
input length2 = 50
ma = ta.sma(close, length)
ma2 = ta.sma(close, length2)
plot(ma, title="MA", color="#4CAF50", width=2)
plot(ma2, title="MA 50", color="#2962FF", width=2)Version history
- Version 1View this version →