OBV OSC DIVERGENCE PIVOTS Trading Guide

Last updated: July 22, 2026

The On-Balance Volume with Divergence and Pivot Points is a quantitative technical analysis tool. On-Balance Volume with Divergence and Pivot Points Ported from Pine Script v5 "OBV Osc". The divergence drawings are placed on the historical pivot bar to match

What does the indicator show?

  • Market Structure & Momentum: Visualizes prevailing trend directions and key reversal zones.
  • BUY / SELL Signals: Highlights confirmed entry and exit opportunities based on quantitative rules.
  • Dynamic Boundaries: Provides adaptive levels for managing trade risk and reward expectations.

Key Settings

  • Source (source): Controls the calculation period and sensitivity for market detection.
  • Short OBV Period (shortLength): Controls the calculation period and sensitivity for market detection.
  • Long OBV Period (longLength): Controls the calculation period and sensitivity for market detection.
  • OBV Wave Pivot Lookback Right (obvPivotRight): Controls the calculation period and sensitivity for market detection.
  • OBV Wave Pivot Lookback Left (obvPivotLeft): Controls the calculation period and sensitivity for market detection.
  • Divergence Pivot Lookback Right (divPivotRight): Controls the calculation period and sensitivity for market detection.
  • Divergence Pivot Lookback Left (divPivotLeft): Controls the calculation period and sensitivity for market detection.
  • Max of Lookback Range (rangeUpper): Controls the calculation period and sensitivity for market detection.
  • Min of Lookback Range (rangeLower): Controls the calculation period and sensitivity for market detection.
  • Plot Bullish (plotBull): Controls the calculation period and sensitivity for market detection.
  • Plot Hidden Bullish (plotHiddenBull): Controls the calculation period and sensitivity for market detection.
  • Plot Bearish (plotBear): Controls the calculation period and sensitivity for market detection.
  • Plot Hidden Bearish (plotHiddenBear): Controls the calculation period and sensitivity for market detection.
  • Positive Area (obvOscUp): Controls the calculation period and sensitivity for market detection.
  • Negative Area (obvOscDown): Controls the calculation period and sensitivity for market detection.
  • OBV Line (obvLine): Controls the calculation period and sensitivity for market detection.
  • Zero Line (zeroLine): Controls the calculation period and sensitivity for market detection.
  • OBV Pivot High (pivotHigh): Controls the calculation period and sensitivity for market detection.
  • OBV Pivot Low (pivotLow): Controls the calculation period and sensitivity for market detection.
  • Regular Bullish Divergence (bullDiv): Controls the calculation period and sensitivity for market detection.
  • Hidden Bullish Divergence (hiddenBullDiv): Controls the calculation period and sensitivity for market detection.
  • Regular Bearish Divergence (bearDiv): Controls the calculation period and sensitivity for market detection.
  • Hidden Bearish Divergence (hiddenBearDiv): Controls the calculation period and sensitivity for market detection.
  • Confirmation Marker (confirmMarker): Controls the calculation period and sensitivity for market detection.
  • OBV Oscillator (obvOsc): Controls the calculation period and sensitivity for market detection.
  • Zero Line (zero): Controls the calculation period and sensitivity for market detection.
  • OBV Oscillator (obvOsc): Controls the calculation period and sensitivity for market detection.
  • Zero Line (zero): Controls the calculation period and sensitivity for market detection.
  • Pivot High (pivotHighSignal): Controls the calculation period and sensitivity for market detection.
  • Pivot Low (pivotLowSignal): Controls the calculation period and sensitivity for market detection.
  • OBV Crossover Zero (obvCrossOverZero): Controls the calculation period and sensitivity for market detection.
  • OBV Crossunder Zero (obvCrossUnderZero): Controls the calculation period and sensitivity for market detection.
  • Regular Bullish Divergence (bullDiv): Controls the calculation period and sensitivity for market detection.
  • Hidden Bullish Divergence (hiddenBullDiv): Controls the calculation period and sensitivity for market detection.
  • Regular Bearish Divergence (bearDiv): Controls the calculation period and sensitivity for market detection.
  • Hidden Bearish Divergence (hiddenBearDiv): Controls the calculation period and sensitivity for market detection.

How to use Strategy Parameters (Condition Source)

Within the Strategy Tester module, this indicator can be used both as a direct signal source and as a market-state filter.

1. Signal Events

  • pivotHighSignal - Pivot High event signal.
  • pivotLowSignal - Pivot Low event signal.
  • obvCrossOverZero - OBV Crossover Zero event signal.
  • obvCrossUnderZero - OBV Crossunder Zero event signal.
  • bullDiv - Regular Bullish Divergence event signal.
  • hiddenBullDiv - Hidden Bullish Divergence event signal.
  • bearDiv - Regular Bearish Divergence event signal.
  • hiddenBearDiv - Hidden Bearish Divergence event signal.

2. Filters and Trade Levels

  • source - Source value used for structural qualification or thresholds.
  • shortLength - Short OBV Period value used for structural qualification or thresholds.
  • longLength - Long OBV Period value used for structural qualification or thresholds.
  • obvPivotRight - OBV Wave Pivot Lookback Right value used for structural qualification or thresholds.
  • obvPivotLeft - OBV Wave Pivot Lookback Left value used for structural qualification or thresholds.
  • divPivotRight - Divergence Pivot Lookback Right value used for structural qualification or thresholds.
  • divPivotLeft - Divergence Pivot Lookback Left value used for structural qualification or thresholds.
  • rangeUpper - Max of Lookback Range value used for structural qualification or thresholds.
  • rangeLower - Min of Lookback Range value used for structural qualification or thresholds.
  • plotBull - Plot Bullish value used for structural qualification or thresholds.
  • plotHiddenBull - Plot Hidden Bullish value used for structural qualification or thresholds.
  • plotBear - Plot Bearish value used for structural qualification or thresholds.
  • plotHiddenBear - Plot Hidden Bearish value used for structural qualification or thresholds.
  • obvOsc - OBV Oscillator value used for structural qualification or thresholds.
  • zero - Zero Line value used for structural qualification or thresholds.
  • obvOsc - OBV Oscillator value used for structural qualification or thresholds.
  • zero - Zero Line value used for structural qualification or thresholds.

Strategy Example: Enter Long when buySignal is true and trendFilter == 1, ensuring trades align with dominant momentum.

Continue Research

Explore the full academy, the product documentation, and the main platform pages for deeper crypto backtesting and strategy research.

Browse all academy guides Read the documentation Compare platform plans See the research engine