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.

In this family#

  1. Price–Indicator Pivot Alignment contract

    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 contract

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

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

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

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

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

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

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

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

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

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

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

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

    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 27 algorithms across 4 families. For the concept behind this family rather than the call signatures, see the concept guides.