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
104 lines of Pine Script v5 from Tradingview/jerry-macd.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Jerry MACD calculates a standard Moving Average Convergence Divergence line, signal line, and histogram using fast, slow, and signal lengths. The indicator features symbol-specific entry threshold mapping, allowing users to define custom threshold trigger levels for up to ten individual ticker symbols or use a default value for unlisted instruments. It generates visual signal bubbles on the chart when histogram threshold conditions are met. Users can customize MACD parameters, symbol threshold mappings, and label formatting.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
All Other Symbols
float
0.01
other_entry
Symbol 1
symbol
SPY
input_symbol1
symbol1_entry
float
0.30
symbol1_entry
Symbol 2
symbol
QQQ
input_symbol2
symbol2_entry
float
0.25
symbol2_entry
Symbol 3
symbol
IWM
input_symbol3
symbol3_entry
float
0.15
symbol3_entry
Symbol 4
symbol
TSLA
input_symbol4
symbol4_entry
float
0.5
symbol4_entry
Symbol 5
symbol
AAPL
input_symbol5
symbol5_entry
float
0.5
symbol5_entry
Symbol 6
symbol
AAPL
input_symbol6
Show all 26 settings
Setting
Type
Default
Variable
symbol6_entry
float
0.5
symbol6_entry
Symbol 7
symbol
AAPL
input_symbol7
symbol7_entry
float
0.5
symbol7_entry
Symbol 8
symbol
AAPL
input_symbol8
symbol8_entry
float
0.5
symbol8_entry
Symbol 9
symbol
AAPL
input_symbol9
symbol9_entry
float
0.5
symbol9_entry
Symbol 10
symbol
AAPL
input_symbol10
symbol10_entry
float
0.5
symbol10_entry
Fast Length
int
12
macd_fastlength
Slow Length
int
26
macd_slowlength
MACD Length
int
5
macd_length
Show Signal Bubbles
bool
true
show_signal_bubbles
Label Size
string
small
LabelSize
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 Derivative Oscillator calculates a double-exponentially smoothed Relative Strength Index (RSI) and subtracts its Simple Moving Average (SMA) to form the main oscillator line. A secondary signal line is plotted using an SMA of the main oscillator values. Th
This indicator calculates a modified MACD oscillator and signal line alongside a trend EMA filter, plotting the output as a stylized column histogram in a separate pane. Instead of plotting true MACD distance, it quantifies positive and negative histogram mome
This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate pane. It computes the difference between a fast and slow moving average, derives a signal line through smoothing, and plots a histogram representing
MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us
Multi-Timeframe Analysis Suite calculates trend direction and momentum conditions across five user-selected timeframes using moving averages, RSI, and Stochastic oscillators. It evaluates moving average slope and oscillator levels to compute trend alignment, m
KamaFama is an indicator that translates a Freqtrade trading strategy into Pine Script for visualization. It combines Kaufman Adaptive Moving Average (KAMA), MAMA/FAMA calculations derived via Hilbert Transform, Williams %R, and correlation trend filters to ev