fintech-algorithms
Using a coding agent? Give it the skill: npx skills add IslamBaraka90/Fintech-Algorithms-Library What it does →

Indicator Divergence Detection

8 algorithms in Geometric Chart Patterns · 8 with asserted arithmetic.

In this family#

  1. Price–Indicator Pivot Alignment verified

    Aligns confirmed price and indicator pivots of the same kind within an explicit lag bound while preserving both event and knowledge indexes.

    priceIndicatorPivotAlignment(payload)
  2. Regular Bullish/Bearish Divergence Detection verified

    Detects regular bullish and bearish divergence from causally aligned consecutive pivot pairs.

    regularBullishBearishDivergenceDetection(payload)
  3. Hidden Bullish/Bearish Divergence Detection verified

    Detects hidden bullish and bearish divergence from causally aligned consecutive pivot pairs.

    hiddenBullishBearishDivergenceDetection(payload)
  4. Multi-Indicator Divergence Adapters verified

    Normalizes indicator pivots into one polarity- and scale-aware representation for downstream divergence logic.

    multiIndicatorDivergenceAdapters(payload)
  5. Divergence Strength and Quality Scoring verified

    Scores the first detected divergence from explicit geometry, prominence, alignment, and separation components.

    divergenceStrengthAndQualityScoring(payload)
  6. Divergence Confirmation and Invalidation State Machine verified

    Advances the first detected divergence through causal confirmation, invalidation, and expiry checks.

    divergenceConfirmationAndInvalidationStateMachine(payload)
  7. Multi-Indicator Divergence Confluence verified

    Combines same-geometry divergence events across distinct indicators using declared non-negative weights.

    multiIndicatorDivergenceConfluence(payload)
  8. Market-Wide Divergence Scanner and Ranking verified

    Filters point-in-time eligible universe records and ranks them from explicit confluence, state, freshness, liquidity, and data-quality components.

    marketWideDivergenceScannerAndRanking(payload)

What they share#

Every topic here is a record-transform, so once you have called one the rest follow the same shape. Import paths differ only in the final segment:

ts
import { priceIndicatorPivotAlignment } from "fintech-algorithms/geometric-chart-patterns/indicator-divergence-detection/price-indicator-pivot-alignment";
import { regularBullishBearishDivergenceDetection } from "fintech-algorithms/geometric-chart-patterns/indicator-divergence-detection/regular-bullish-bearish-divergence-detection";

Read them in the order above — the sequence is pedagogical, not alphabetical.

Where this sits#

Geometric Chart Patterns collects 64 algorithms across 7 families. For the concept behind this family rather than the call signatures, see the concept guides.