Pro In Out Divergence is a lower-pane oscillator indicator that combines normalized stochastic layers, triple exponential moving averages (TEMA), and DMI/ADX state calculations.
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
157 lines of Pine Script v5 from Tradingview/pro-in-out-divergence.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Pro In Out Divergence tracks momentum shifts and inflow or outflow states relative to zero lines and overbought/oversold thresholds. Main settings allow users to adjust the core calculation length and the overbought/oversold levels. The indicator plots oscillator lines, signal shapes, and vertical state change lines in a separate pane.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pro Length
int
20
pro_length
Overbought/Oversold
float
1.5
overbought_oversold
Generate Alerts
bool
false
generate_alerts
Alert Requires Aim
bool
true
alert_requires_aim
State 1
color
color.new(#00ff0a,0)
state1_color
State 2
color
color.new(#ff0000,0)
state2_color
State 3
color
color.new(color.yellow,0)
state3_color
Overbought/Oversold Lines
color
color.white
overbought_oversold_color
Aim Buy
color
color.new(#00ff0a,0)
aim_buy_color
Ready Buy
color
color.new(#1b5e20,0)
ready_buy_color
Aim Sell
color
color.new(#ff0000,0)
aim_sell_color
Ready Sell
color
color.new(#aa1e2a,0)
ready_sell_color
Show all 16 settings
Setting
Type
Default
Variable
Major
color
color.new(#4dd0e1,0)
major_color
Major Buy
color
color.new(#4dd0e1,0)
majorbuy_color
Major Sell
color
color.new(#4dd0e1,0)
majorsell_color
Background Transparency
int
60
bg_transparency
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.
MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us
MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a
PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l
The 8-Factor Composite Screener evaluates equities across fundamental and technical criteria, including valuation ratios, earnings and revenue growth, 12-month return momentum, proximity to 52-week highs, Stage 2 moving average alignment, benchmark relative st
This indicator plots a relative strength index in a separate pane. It calculates RSI from the average of the previous ten opens rather than the current bar, so that source does not change during the live candle. A moving average of the RSI is plotted and can b
Normalized Volatility Adjusted Relative Strength compares the chart symbol against a benchmark instrument such as SPY while adjusting for price volatility. The indicator calculates individual ATR-normalized price changes for both assets over a specified lookba