This indicator plots six exponential moving averages, three simple moving averages, and a session volume-weighted average price directly on the price chart.
1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
145 lines of Pine Script v6 from individual_scripts/ema_sma_.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
EMA / SMA MP signals through chart labels triggered by moving average crossovers, including fast and slow exponential moving average crosses and simple moving average crosses. Master toggles and individual inputs allow users to adjust lengths, visibility, and colors for each moving average line. As an analytical overlay, the script provides visual trend cues without trade execution, stop loss parameters, or exit logic.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
🔘 MASTER: Show EMAs
bool
true
master_show_ema
🔘 MASTER: Show EMA Cross Labels
bool
true
master_show_ema_cross
🔘 MASTER: Show SMAs
bool
true
master_show_sma
🔘 MASTER: Show SMA Cross Labels
bool
true
master_show_sma_cross
🔘 MASTER: Show VWAP
bool
true
master_show_vwap
Show EMA 1
bool
true
show_ema1
len_ema1
int
10
len_ema1
col_ema1
color
color.orange
col_ema1
Show EMA 2
bool
true
show_ema2
len_ema2
int
21
len_ema2
col_ema2
color
color.green
col_ema2
Show EMA 3
bool
true
show_ema3
Show all 40 settings
Setting
Type
Default
Variable
len_ema3
int
50
len_ema3
col_ema3
color
color.blue
col_ema3
Show EMA 4
bool
true
show_ema4
len_ema4
int
100
len_ema4
col_ema4
color
color.gray
col_ema4
Show EMA 5
bool
true
show_ema5
len_ema5
int
200
len_ema5
col_ema5
color
color.purple
col_ema5
Show EMA 6
bool
true
show_ema6
len_ema6
int
800
len_ema6
col_ema6
color
color.red
col_ema6
Show EMA Cross Labels
bool
true
show_ema_cross_labels
Fast Length
int
9
len_ema_cross_fast
Slow Length
int
21
len_ema_cross_slow
Show SMA 1
bool
true
show_sma1
len_sma1
int
50
len_sma1
col_sma1
color
color.purple
col_sma1
Show SMA 2
bool
true
show_sma2
len_sma2
int
100
len_sma2
col_sma2
color
color.fuchsia
col_sma2
Show SMA 3
bool
true
show_sma3
len_sma3
int
200
len_sma3
col_sma3
color
color.navy
col_sma3
Show SMA Cross Labels
bool
true
show_sma_cross_labels
Fast Length
int
50
len_sma_cross_fast
Slow Length
int
200
len_sma_cross_slow
Show VWAP
bool
true
show_vwap
VWAP Color
color
color.orange
col_vwap
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec
This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab
This indicator plots four customizable moving averages directly on the main price chart using default lengths of 3, 8, 21, and 50 periods. It fills the space between adjacent averages in green or maroon depending on trend alignment. Additionally, it computes B
This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre
Donald SPX - Options Trading is an overlay indicator designed for intraday SPX analysis. It plots a 200-period Weighted Moving Average (WMA) on the price chart while evaluating multi-timeframe market structure across Daily, 15-minute, 5-minute, and 2-minute ba
This multi-timeframe indicator calculates and plots 20-period and 60-period simple moving averages from the 60-minute timeframe directly onto the price chart. The 20-period average displays as a green line, while the 60-period average appears in blue. It serve