Indicator · Pine Script v5 · Own pane

A/D Context v20.8

by VVASILEVSS

A Pine v5 indicator in a separate pane using Williams or Chaikin accumulation and distribution flow, a smoothing EMA, Chaikin Money Flow and ATR.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code621
Settings40inputs
LicenceNone stated
Last update3 months ago30 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

VVASILEVSS on GitHub

Draws

Separate pane below the chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Flow ModestringWilliams ADflowMode
CMF Lengthint20cmfLen
A/D Smoothing EMAint21emaLen
ATR Lengthint14atrLen
Profile ModestringAutoprofileMode
P1 — Timeframestring1hp1_tf
P1 Pivot Leftint8p1_pivL
P1 Pivot Rightint8p1_pivR
P1 Min Price %float0.005p1_price
P1 Min Flow %float0.08p1_flow
P1 Min ATRfloat0.40p1_atr
P1 Cooldownint15p1_cool
Show all 40 settings
SettingTypeDefaultVariable
P1 Req Confirmboolfalsep1_conf
P2 — Timeframestring4hp2_tf
P2 Pivot Leftint10p2_pivL
P2 Pivot Rightint10p2_pivR
P2 Min Price %float0.012p2_price
P2 Min Flow %float0.10p2_flow
P2 Min ATRfloat0.50p2_atr
P2 Cooldownint20p2_cool
P2 Req Confirmbooltruep2_conf
P3 — Timeframestring1dp3_tf
P3 Pivot Leftint12p3_pivL
P3 Pivot Rightint12p3_pivR
P3 Min Price %float0.020p3_price
P3 Min Flow %float0.12p3_flow
P3 Min ATRfloat0.60p3_atr
P3 Cooldownint25p3_cool
P3 Req Confirmbooltruep3_conf
Pivot Leftint8pivotLeftBase
Pivot Rightint8pivotRightBase
Min Price Move %float0.008minPriceMovePct
Min A/D Movefloat0.08minAdMovePct
Min Swing ATRfloat0.40minSwingAtr
Cooldown Barsint12cooldownBars
Confirm Barsint6confirmBarsAfterDiv
Require ConfirmationboolfalserequireDivConf
Show Active Div Zone LinebooltrueshowDivLine
Max Line Length (bars)int80divLineMaxBars
Line color: invalidatedcolorcolor.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.

Similar Pine Scripts

Oscillator Suite

by TamaraKGreen
46 stars

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

Indicator v5 Oscillators & momentumDivergence
Updated 7 weeks ago · None stated GitHub repository of Oscillator Suite

MFI Divergences

by tistaharahap
25 stars

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

Indicator v4 Oscillators & momentumVolume
Updated 6 years ago · None stated GitHub repository of MFI Divergences
11 stars

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

Indicator v6 Oscillators & momentumVolume Repaints
Updated 7 weeks ago · MIT GitHub repository of CVD Z-Score [NeuNue]
9 stars

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

Indicator v6 VolumeOscillators & momentum
Updated 2 days ago · MIT GitHub repository of CVD Bias [WavesUnchained]

DC-B v2.5

by crissrocca
9 stars

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

Indicator v4 Oscillators & momentumDivergence
Updated 3 years ago · MPL-2.0 GitHub repository of DC-B v2.5

QPulse

by JasonTeixeira
9 stars

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

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · Custom licence GitHub repository of QPulse

More Divergence scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers