This indicator plots entry signals directly on the price chart by combining Directional Movement Index (DMI) and Moving Average Convergence Divergence (MACD) indicators.
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
130 lines of Pine Script v5 from Tradingview/dmi-adx-signals-macd-signals.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
DMI ADX Signals with MACD Signals offers two distinct signal logic modes that trigger when DMI and MACD confirm each other and price breaks the prior bar's high or low. Traders can enable a custom session filter to restrict signal generation to specific trading hours. The indicator also calculates and projects dynamic entry price, stop loss, and three take-profit targets based on multiples of the signal bar's range.
DMI and MACD combined signal generation
Dual signal modes with breakout bar confirmation
Customizable trading session time filter
Dynamic take profit and stop loss levels based on signal bar range
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Use Signal 1
bool
true
_signal1
Use Signal 2
bool
true
_signal2
Use Time Constraint
bool
true
_time_constraint
Time Session
session
0645-1700
_time_sess
TP 1
float
0.625
_tp1
TP 2
float
1.00
_tp2
TP 3
float
1.625
_tp3
DMI Length
int
14
_dmi_length
MACD Fast
int
12
_macd_fast
MACD Slow
int
26
_macd_slow
MACD Signal
int
9
_macd_signal
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 intraday overlay establishes directional bias and high-conviction swing setups for SPY on the 15-minute timeframe. It computes a weighted confluence score combining an EMA ribbon, a 50 EMA anchor, session VWAP bands, RSI divergence, ADX, TTM Squeeze, cand
The ORB + Fib + MACD Indicator combines Opening Range Breakout mechanics with Fibonacci retracement levels and MACD momentum filtering. It determines the high and low bounds of a user-defined initial session window, projects Fibonacci entry zones, and calculat
This indicator plots multi-timeframe RSI signals on the price chart. It calculates a smoothed RSI using short and long periods with EMA smoothing, then applies a Stoch filter for direction changes. Signals trigger on crossovers and levels, combined with ADX tr
This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds
This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points
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