1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
[Z] Moving Average provides seven Simple Moving Averages with default periods of 5, 10, 20, 30, 60, 120, and 200, alongside one 20-period Exponential Moving Average. Each moving average plot includes independent settings for source data, lookback length, and horizontal bar offset, allowing traders to monitor multiple trend horizons simultaneously.
Seven configurable simple moving averages
One configurable exponential moving average
Independent source and period inputs for each line
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
src
Length 0
int
5
len0
Length
int
10
len1
Length
int
20
len2
Length
int
30
len3
Length
int
60
len4
Length
int
120
len5
Length
int
200
len6
Length
int
20
len7
Offset
int
0
offset
Length
int
10
len1
Source
source
close
src1
Show all 31 settings
Setting
Type
Default
Variable
Offset1
int
0
offset1
Length
int
20
len2
Source
source
close
src2
Offset2
int
0
offset2
Length
int
30
len3
Source
source
close
src3
Offset3
int
0
offset3
Length
int
60
len4
Source
source
close
src4
Offset4
int
0
offset4
Length
int
120
len5
Source
source
close
src5
Offset5
int
0
offset5
Length
int
200
len6
Source
source
close
src6
Offset6
int
0
offset6
Length
int
20
len7
Source
source
close
src7
Offset7
int
0
offset7
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 indicator computes moving average and RSI bias signals across the current timeframe and four higher timeframes. It sums biases from the MA and RSI to derive an overall bullish or bearish signal. The results appear in a configurable table that displays eac