Pivot Trendlines with Divergence Scanner combines multiple moving averages, stochastic RSI indicators, and multi-timeframe stochastic RSI to generate buy and sell signals based on confluence. Entries follow conditions from these oscillators with ATR-based targets and stops. A session time filter controls active periods, with optional exit at end of session. The divergence scanner identifies potential reversals in price action.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Session Times
bool
true
use_sess_time
sess_time
session
0700-2100
sess_time
Exit at End Of Session
bool
false
exit_at_eos
Take Every Signal
bool
true
take_every_signal
Target ATR
float
2.25
tgt_atr
Stop ATR
float
3.00
stop_atr
MA 1
int
8
ma1_length
ma1_type
string
EMA
ma1_type
MA 2
int
14
ma2_length
ma2_type
string
EMA
ma2_type
MA 3
int
50
ma3_length
ma3_type
string
EMA
ma3_type
Show all 31 settings
Setting
Type
Default
Variable
K
int
3
smoothK
D
int
3
smoothD
RSI Length
int
14
lengthRSI
Stochastic Length
int
14
lengthStoch
RSI Source
source
close
src
Stoch Buy Below
int
75
stoch_buy
Stoch Sell Above
int
25
stoch_sell
Timeframe
timeframe
240
mtf_stoch_tf
K
int
3
mtf_smoothK
D
int
3
mtf_smoothD
RSI Length
int
14
mtf_lengthRSI
Stochastic Length
int
14
mtf_lengthStoch
RSI Source
source
close
mtf_src
RSI Length
int
14
rsiLengthInput
RSI Source
source
close
rsiSourceInput
RSI Buy Below
int
70
rsi_buy_lvl
RSI Sell Above
int
30
rsi_sell_lvl
Use RSI Divergence In Signals
bool
true
use_rsi_div
RSI Divergence Length
int
5
rsi_div_length
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 analyzes short-term price action on index futures and options charts by applying Rational Quadratic kernel smoothing to detect sideways consolidation ranges and potential breakouts. It processes pivot highs and lows over customizable loopback pe
This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p
This indicator calculates an Exponential Moving Average and a Zero-Lag Moving Average to identify market trends on the price chart. It plots both moving averages and fills the space between them with color to highlight trend direction. Upon a crossover or cros