Fractals with Divergence Scanner is an overlay indicator that combines Exponential Moving Averages, an eight-line EMA ribbon cloud, and WaveTrend divergence analysis.
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
212 lines of Pine Script v5 from Tradingview/fractals-divergence-scanner.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Fractals with Divergence Scanner calculates baseline EMA trends alongside WaveTrend oscillators to detect regular and hidden divergences at fractal pivot points. The script plots colored buy and sell signal dots directly on the main price chart when momentum crosses align with trend conditions. Users can customize baseline EMA lengths, individual ribbon parameters, and WaveTrend overbought or oversold threshold levels.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Use EMA ?
bool
true
use_ma
EMA Price
source
close
ma_price
EMA Length
int
50
ma_length
Use EMA Ribbon ?
bool
true
use_ma_ribbon
Color Ribbon Cloud ?
bool
true
color_ribbon_cloud
EMA Ribbon Price
source
close
ema_ribbon_price
EMA Length 1
int
21
ema_length_1
EMA Length 2
int
25
ema_length_2
EMA Length 3
int
30
ema_length_3
EMA Length 4
int
35
ema_length_4
EMA Length 5
int
40
ema_length_5
EMA Length 6
int
45
ema_length_6
Show all 40 settings
Setting
Type
Default
Variable
EMA Length 7
int
50
ema_length_7
EMA Length 8
int
55
ema_length_8
Small BUY/SELL Dots
bool
true
small_dots
WT MA Source
source
hlc3
wtMASource
WT Channel Length
int
9
wtChannelLen
WT Average Length
int
12
wtAverageLen
WT MA Length
int
3
wtMALen
WT Overbought Level 1
int
53
obLevel
WT Oversold Level 1
int
-53
osLevel
Regular BUY/SELL Dots
bool
true
regular_dots
Show WT Regular Divergences
bool
true
wtShowDiv
Show WT Hidden Divergences
bool
false
wtShowHiddenDiv
Not apply OB/OS Limits on Hidden Divergences
bool
true
showHiddenDiv_nl
WT Bearish Divergence min
int
45
wtDivOBLevel
WT Bullish Divergence min
int
-65
wtDivOSLevel
Show 2nd WT Regular Divergences
bool
true
wtDivOBLevel_addshow
WT 2nd Bearish Divergence
int
15
wtDivOBLevel_add
WT 2nd Bullish Divergence 15 min
int
-40
wtDivOSLevel_add
Show Stochastic RSI
bool
true
stochShow
Use Log?
bool
true
stochUseLog
Use Average of both K & D
bool
false
stochAvg
Stochastic RSI Source
source
close
stochSRC
Stochastic RSI Length
int
14
stochLen
RSI Length
int
14
stochRsiLen
Stochastic RSI K Smooth
int
3
stochKSmooth
Stochastic RSI D Smooth
int
3
stochDSmooth
Show Stoch Regular Divergences
bool
false
stochShowDiv
Show Stoch Hidden Divergences
bool
false
stochShowHiddenDiv
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 overlays multiple technical analysis tools onto the price chart to evaluate trend direction and trade setups. It computes an exponential moving average, a smoothed Stochastic RSI, a custom Williams Alligator using smoothed moving averages with o
ARPS Ultimate MultiStrategy Trading combines multiple technical indicators into a single chart overlay. It calculates and plots trend lines, moving averages, Ichimoku cloud components, Williams Alligator lines, and Fibonacci support and resistance levels direc
Complexity Trender is an indicator that combines EMA crossovers, RSI momentum, Stochastic signals, Bollinger Bands, ADX trend strength, volume analysis, and divergence detection to identify trends. It plots labels, trend lines, and a summary table directly on
This multi-timeframe indicator combines higher-timeframe trend analysis, MACD divergence detection, and short-term oscillator timing to identify trading opportunities on GBPJPY. It evaluates trend direction using a 4-hour EMA, locates MACD divergences with Zig
This indicator evaluates how price relates to one selected moving-average family rather than treating a crossover as a signal. It scores trend quality, historical respect of the average, extension, compression, acceleration, and exhaustion, then plots a relati
This indicator plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It calculates up to four configurable moving averages across different timeframes, offering selectable types such as SMA, EMA, and WMA with colore