This indicator overlays a Hull Moving Average and three Exponential Moving Averages on the price chart while monitoring signals from MACD, Stochastic Oscillator, and Time Segmented Volume.
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
187 lines of Pine Script v5 from Tradingview/macd-signals-alert-system-v2.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 tracks trend direction changes, MACD histogram color shifts from bright to dark, and price crosses over standard EMAs. Users can toggle individual alerts for Hull slope changes, MACD transitions, EMA crossings, Stochastic crossovers, and Time Segmented Volume threshold crosses directly from the settings panel.
Hull Moving Average trend direction plot
MACD histogram momentum fade detection
Multi-EMA cross alerts for 50, 100, and 200 periods
Integrated Stochastic and Time Segmented Volume alerts
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 21 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
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 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
MasterTrader V1 is an indicator that plots two exponential moving averages (fast length 9, slow length 21) and RSI (length 14) on the close price chart. It generates long entry signals when the fast EMA crosses above the slow EMA, RSI stays between 30 and 70,
This indicator calculates dual Exponential Moving Averages alongside their slopes, normalized distance, and momentum to detect trend shifts on the price chart. It plots standard EMA crossovers while also assessing early warning conditions when EMAs approach ea
This Pine Script indicator plots fast and slow EMA lines on the price chart to identify trend direction. It applies RSI and MACD filters to confirm momentum strength and checks volume against its average for confirmation. Buy signals trigger on fast EMA crossi