FTB-C000641 / Algorithm

Double Top

Double Top is a bearish reversal detector for two comparable confirmed highs, an intervening trough, and a later close below the neckline.

Also known asdouble-top pattern

Definitions

In plain terms

It first checks whether two highs are similar and meaningfully separated by a trough, then waits for a causal downside neckline break.

Technical

The selected close-only contract uses strict local pivots with left=2 and right=2, normalized spread <= 0.025, retracement >= 0.05, prior rise >= 0.03, and inclusive expiry after candidate availability.

Scope

A detected double top is a geometric event contract, not a guaranteed reversal or profitable trade.

Formula

spread=(max(p1,p2)-min(p1,p2))/mean(p1,p2); retracement=(mean(p1,p2)-trough)/mean(p1,p2); confirm close below neckline
LaTeX: s=\frac{\max p-\min p}{\bar p},\quad r=\frac{\bar p-v}{\bar p},\quad C_t<N_t
SymbolMeaningUnit
p1,p2comparable highsprice
vintervening troughprice

Output unit: fractions and price

Examples

  • A reviewer computes Double Top on a deterministic close fixture and checks pivot timing, threshold equality, neckline behavior, and rejection diagnostics before publication.

Common misconceptions

  • A detected double top is a geometric event contract, not a guaranteed reversal or profitable trade.

Concept relationships

Where this concept is used

Evidence and governance

  1. Members' Guide to 2021 Refresher Readings CFA Institute · first party methodology

    Supports: preferred label, short definition, technical definition, formula

    Limits: The curriculum does not prescribe this package's pivot window, numeric thresholds, causal state machine, or performance claim.

  2. Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation Lo, Mamaysky, and Wang · first party technical publication

    Supports: preferred label, short definition, technical definition, formula

    Limits: The paper's smoothing, sample, and empirical design are not copied into this package and do not validate its thresholds.

  3. Pine Script repainting concepts TradingView · official platform documentation

    Supports: preferred label, short definition, technical definition, formula

    Limits: Platform display behavior does not establish financial usefulness or predictive value.

  4. scipy.signal.find_peaks SciPy · first party technical publication

    Supports: preferred label, short definition, technical definition, formula

    Limits: This retrospective signal function is not itself a causal OHLC pivot detector.

  5. Pine Script pivot techniques TradingView · official platform documentation

    Supports: preferred label, short definition, technical definition, formula

    Limits: The package freezes its own equality, separation, and OHLC policies rather than claiming one universal pivot definition.

  6. Zig Zag indicator QuantConnect · official platform documentation

    Supports: preferred label, short definition, technical definition, formula

    Limits: This package selects a close-only percentage-reversal variant and documents the difference.

  7. LEAN ZigZag source QuantConnect · first party technical publication

    Supports: preferred label, short definition, technical definition, formula

    Limits: A maintained implementation is evidence for one convention, not a universal market rule.

Reviewed by
fintech-builder-batch-012
Last reviewed
2026-08-10
Next review
2027-08-10
Record status
evidence reviewed

This record is evidence-reviewed and readable, but not yet promoted to published — it is served noindex,follow and excluded from the sitemap.

Written by

Fintech engineer building market-data and financial systems, and the author of every article, glossary record, and reference implementation on The Fintech Builder.