1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
A/D Context v20.8 detects divergences between price and flow pivots and draws a line for the active divergence zone that fades on an opposite signal. Three timeframe presets can be chosen automatically from the chart timeframe, forced, or replaced by manual values. The folder name marks this copy as not verified by its author.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Flow Mode
string
Williams AD
flowMode
CMF Length
int
20
cmfLen
A/D Smoothing EMA
int
21
emaLen
ATR Length
int
14
atrLen
Profile Mode
string
Auto
profileMode
P1 — Timeframe
string
1h
p1_tf
P1 Pivot Left
int
8
p1_pivL
P1 Pivot Right
int
8
p1_pivR
P1 Min Price %
float
0.005
p1_price
P1 Min Flow %
float
0.08
p1_flow
P1 Min ATR
float
0.40
p1_atr
P1 Cooldown
int
15
p1_cool
Show all 40 settings
Setting
Type
Default
Variable
P1 Req Confirm
bool
false
p1_conf
P2 — Timeframe
string
4h
p2_tf
P2 Pivot Left
int
10
p2_pivL
P2 Pivot Right
int
10
p2_pivR
P2 Min Price %
float
0.012
p2_price
P2 Min Flow %
float
0.10
p2_flow
P2 Min ATR
float
0.50
p2_atr
P2 Cooldown
int
20
p2_cool
P2 Req Confirm
bool
true
p2_conf
P3 — Timeframe
string
1d
p3_tf
P3 Pivot Left
int
12
p3_pivL
P3 Pivot Right
int
12
p3_pivR
P3 Min Price %
float
0.020
p3_price
P3 Min Flow %
float
0.12
p3_flow
P3 Min ATR
float
0.60
p3_atr
P3 Cooldown
int
25
p3_cool
P3 Req Confirm
bool
true
p3_conf
Pivot Left
int
8
pivotLeftBase
Pivot Right
int
8
pivotRightBase
Min Price Move %
float
0.008
minPriceMovePct
Min A/D Move
float
0.08
minAdMovePct
Min Swing ATR
float
0.40
minSwingAtr
Cooldown Bars
int
12
cooldownBars
Confirm Bars
int
6
confirmBarsAfterDiv
Require Confirmation
bool
false
requireDivConf
Show Active Div Zone Line
bool
true
showDivLine
Max Line Length (bars)
int
80
divLineMaxBars
Line color: invalidated
color
color.new(color.gray,50)
divLineInvalCol
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.
Oscillator Suite plots a normalised price oscillator in a separate pane and overlays a signal line that can use SMA, EMA, WMA, HMA, RMA, VWMA, T3, ZEMA, KAMA, or GKEMA. It marks bullish and bearish divergences, a smoothed money-flow series, confluence areas an
This indicator plots the Money Flow Index in a separate pane and marks regular and hidden bullish and bearish divergences between price pivots and the oscillator. It builds the index from positive and negative money flow, then finds pivot highs and lows using
This indicator plots a smoothed Z-score of cumulative volume delta in a separate pane, showing whether buying or selling pressure is dominant and when the reading enters extreme zones. It marks spot accumulation, climax or exhaustion, and pivot-based price-vol
This indicator plots a heuristic volume-balance oscillator in a separate pane. It estimates signed volume from the close location inside each bar, multiplies that by volume, and sums the proxy over a rolling window. The sum is scaled between minus one and plus
This indicator is an oscillator suite inspired by Market Cipher B and VuManChu Cipher B that plots in a separate pane. It combines a WaveTrend oscillator, a Money Flow Index (MFI) area, and an RSI indicator with automatic divergence detection. Visual signals h
QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an