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
V5 Combination by YZZ features an overlay MACD visualizer with selectable calculation methods (Traditional, AS Histogram, Leader, or Source), custom positioning, and smoothing options. Additional inputs control trend channels, ATR volatility scaling, and clustering parameters. It plots custom sub-graphs, shapes, and alerts directly on the main price chart. The indicator calculates visual elements over a user-defined lookback period on historical bars.
Overlay MACD visualizer with customizable calculation methods
Multiple MACD modes including Leader, Traditional, and AS Histogram
On-chart visual layout with customizable position and lookback length
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
MACD Calculation Method
string
MACD-SOURCE
macdType
Fast Length
int
12
fast_length
Slow Length
int
26
slow_length
Source
source
close
source
Signal Smoothing
int
9
signal_length
Oscillator MA Type
string
EMA
sma_source
Signal Line MA Type
string
EMA
sma_signal
Display MACD/Signal Corsses
bool
false
macdSigCross
Highlight MACD/Signal Area
bool
true
highlight
Overlay Indicator Display Length
int
200
lookbackLength
Placement
string
Bottom
oscPlacement
Hight
int
10
Hight
Show all 40 settings
Setting
Type
Default
Variable
Vertical Indicator Position
int
4
verticalAdj
Trend Length
int
10
length
Set Targets
int
0
target
Trend Length
int
100
ftclength
Channel Width
float
3
multi
Index of future price
int
5
extend
Up
color
#16d897
color_up
Dn
color
#da853f
color_dn
ATR Length
int
10
sslength
Factor Range
int
1
minMult
maxMult
int
5
maxMult
Step
float
.5
step
Performance Memory
float
10
perfAlpha
From Cluster
string
Best
fromCluster
Maximum Iteration Steps
int
1000
maxIter
Historical Bars Calculation
int
10000
maxData
Trailing Stop
color
color.red
bearCss
bullCss
color
color.teal
bullCss
AMA
color
color.new(color.red, 50)
amaBearCss
amaBullCss
color
color.new(color.teal, 50)
amaBullCss
Candle Coloring
bool
true
showGradient
Show Signals
bool
true
showSignals
Show Dashboard
bool
true
showDash
Location
string
Top Right
dashLoc
Size
string
Small
textSize
Source
source
close
sourceInput
Use Long-Term Channel
bool
false
periodMode
Deviation Multiplier:
float
2.0
devMultiplier
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.
ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level
Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas
This indicator plots Bollinger Bands on the price chart alongside a baseline moving average to identify trend-aligned swing setups. It calculates trend bias by comparing the Bollinger Bands basis to a customizable moving average, such as a 200 EMA. Trade signa
Index Intraday Analyst overlays CBOE cash indices such as SPX, NDX, RUT, and DJX. It plots a multi-EMA ribbon, a session-anchored TWAP with standard-deviation bands, and session levels such as prior-day high, low, and close, the opening range, and the high and
RePaNoCHa V4 is an overlay alert indicator that plots a Tillson T3 moving average on the price chart and colors it by whether the line is rising or falling. It combines that slope with a range filter, ADX, parabolic SAR, RSI, and MACD to mark long and short si
This indicator plots an exponential moving average and marks momentum-based trade sessions on the price chart. It treats RSI between 45 and 55 as chop and shades the background when momentum is present. Long and short labels appear when MACD crosses its signal