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 calculates a modified MACD line and signal oscillator with configurable modes including traditional, histogram-based, leader, and source-based variations. The oscillator values are rendered dynamically as on-chart visuals or separate overlay regions using customizable vertical position and height scaling. The script also includes trend analysis parameters, channel calculations, and ATR-based stops. Users can adjust moving average types, signal smoothing, lookback length, and visual parameters to customize performance.
Multiple MACD calculation modes including Leader and AS Histogram
Dynamic on-chart overlay rendering with adjustable position and height
Crossover plot shapes and customizable alert triggers
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.
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
An overlay indicator that combines an ATR-based SuperTrend trailing stop with an integrated RSI-derived midline calculation on the price chart. The SuperTrend uses an ATR period and factor multiplier to plot dynamic green or red trend lines based on price dire
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
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
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
The VibeTrader Signal System is an overlay indicator that identifies trend direction and potential reversal conditions. It calculates a Supertrend line alongside Bollinger Bands and a 14-period RSI indicator. The script highlights bullish and bearish trends by