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
211 lines of Pine Script v5 from Tradingview/macd-signals-alert-system.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
MACD Signals with Alert System calculates a Hull Moving Average, MACD histogram, three Exponential Moving Averages, Slow Stochastic, and Time Segmented Volume. While plotting the color-coded Hull MA directly on price, it tracks state changes across all underlying indicators—such as Hull direction flips, MACD bright-to-dark histogram shifts, EMA crossovers, Stochastic threshold crossings, and TSV zero-line crosses. Users can independently toggle alerts and adjust lengths for each calculation module.
Hull Moving Average color-coded overlay
Combined multi-indicator alert system
MACD histogram momentum state detection
Triple Exponential Moving Average crossovers
Time Segmented Volume and Stochastic level tracking
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Hull Standalone Alerts
bool
true
hull_standalone_alerts
MACD Changing Bright-to-Dark Alerts
bool
true
macd_changing_b_2_d_alerts
EMA Crossing Alerts
bool
true
ema_crossing_alerts
Stoch Crossing Alerts
bool
true
stoch_crossing_alerts
Time Seg Vol Crossing Alerts
bool
true
timsegvol_alerts
Hull Length
int
20
hull_length
Hull Price
source
close
hull_price
MACD Fast Length
int
12
fast_length
MACD Slow Length
int
26
slow_length
MACD Sigal Length
int
9
signal_length
MACD Price
source
close
macd_src
EMA 50 Length
int
50
ema1
Show all 22 settings
Setting
Type
Default
Variable
EMA 100 Length
int
100
ema2
EMA 200 Length
int
200
ema3
EMA Price
source
close
ema_src
K Period
int
10
stoch_kperiod
D Period
int
10
stoch_dperiod
Overbought
int
80
stoch_overbought
Other Alert Level
int
50
stoch_mid
Oversold
int
20
stoch_oversold
TSV Length
int
13
l
MA Length
int
7
l_ma
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.
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding
This indicator generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem
This overlay indicator plots a SuperTrend using a 10-period ATR with a multiplier of 3, drawing up and down stop lines and a faint trend fill on the price chart. It compares a 9-period EMA with an 18-period EMA and a 12/26/9 MACD against its signal, and it req
Bte Acc is a chart indicator form of the PineCoders Backtesting and Trading Engine. It seeks an entry trigger from a main or alternate entry method, then checks trade direction, filters, date range, ATR readiness, and remaining capital before filling on the ne
This overlay indicator generates buy and sell signal labels on the price chart by combining MACD crossovers with an RSI threshold filter, a 21-period EMA trend filter, and a volume multiplier condition. When a valid signal triggers, it calculates and plots sug