A separate-pane oscillator that builds a MACD from double exponential moving averages to reduce lag, with a signal line and a colored histogram that changes shade as momentum rises or falls.
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
273 lines of Pine Script v5 from MACD_DEMA_Pro_v2.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
MACD DEMA Pro can mark regular divergences using pivot lookback and offers an optional higher-timeframe confirmation. Extra calculations include a 200 EMA, RSI, Bollinger %B and a 52-week range position for entry and price-level context. Labels and settings are partly in Turkish.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
DEMA Hızlı
int
12
sma_len
DEMA Yavaş
int
26
lma_len
Sinyal Periyodu
int
9
tsp_len
MACD/Sinyal Çizgileri
bool
true
show_lines
Divergence Göster
bool
true
show_div
Pivot Geriye Bakış
int
14
div_lookback
MTF Onay Kullan
bool
false
use_mtf
Üst Zaman Dilimi
timeframe
D
htf_tf
Uzun Vade EMA
int
200
entry_ema
RSI Periyodu
int
14
entry_rsi
Bollinger Periyodu
int
20
entry_bb_len
Bollinger Çarpanı
float
2.0
entry_bb_mult
Show all 13 settings
Setting
Type
Default
Variable
52 Hafta Periyodu
int
252
week52_len
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 calculates momentum setups based on the Relative Strength Index (RSI) and plots in a separate pane. It offers multiple scanning modes such as Continuous Break, Continuous Retracement, Flip Break, Flip Retracement, and both regular and hidden div
This indicator calculates the MACD oscillator from a configurable source with fast and slow lengths, then plots the histogram, MACD line, and signal line in a separate pane. It detects regular bullish divergences (price lower lows with oscillator higher lows),
This indicator calculates the Relative Strength Index (RSI) across four user-selected timeframes and plots the results in a separate pane. It identifies regular bullish and bearish divergences between price pivot points and the primary timeframe RSI value. Add
The Bubbles Indicator measures volatility squeezes and expansion bursts using Bollinger Bands combined with a sinusoid oscillator and RSI divergence. It processes price data through scaled Bollinger Bands to highlight volatility changes while confirming trend
This indicator plots a standard Relative Strength Index (RSI) in a separate pane alongside customizable overbought and oversold threshold levels with shaded fills. It identifies pivot highs and lows on the oscillator to detect regular and hidden bullish and be
This indicator calculates a 14-period RSI from close and plots it in a separate pane with dotted overbought and dashed oversold lines at 70 and 30. It marks bullish divergence when a five-bar pivot low in price is lower than the price twenty bars earlier while