A Pine v5 indicator in a separate pane that measures accumulation and distribution flow with Williams or Chaikin A/D, a smoothing EMA, Chaikin Money Flow and ATR.
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.9 marks divergences between price and flow pivots and draws a line that closes with an end marker when an opposite signal appears. Three timeframe presets, selected automatically, manually or by number, set pivot lengths, minimum moves, cooldown and confirmation. Alert conditions cover buy and sell divergences and candidates.
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 TF
profileMode
P1 — TF (60=1h, 240=4h, D=1d)
string
60
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 mult
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 — TF
string
240
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 mult
float
0.50
p2_atr
P2 Cooldown
int
20
p2_cool
P2 Req Confirm
bool
true
p2_conf
P3 — TF
string
D
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 mult
float
0.60
p3_atr
P3 Cooldown
int
25
p3_cool
P3 Req Confirm
bool
true
p3_conf
Pivot Left
int
6
pivotLeftBase
Pivot Right
int
6
pivotRightBase
Min Price Move %
float
0.08
minPricePct
Min Flow Move %
float
0.15
minFlowPct
Min Swing ATR mult
float
0.5
minAtrMult
Cooldown Bars
int
12
cooldown
Require follow-through (live)
bool
false
reqConfirm
Max confirm wait (bars)
int
6
confirmBars
Alert: BUY DIV
bool
true
alertOnBull
Alert: SELL DIV
bool
true
alertOnBear
Alert: DIV Candidate (unconfirmed)
bool
false
alertOnCand
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