FTB-C000598 / Implementation concept

ZigZag Minimum Bar Separation

ZigZag Minimum Bar Separation is the minimum number of bars allowed between a swing event and its confirmation.

Also known asminimum trend length

Definitions

In plain terms

It prevents immediate reversals from producing overly dense swings.

Technical

min_bars is an integer at least 1 and must be satisfied in addition to the reversal fraction.

Scope

Increasing minimum bars changes readiness even when the price threshold is unchanged.

Examples

  • A reviewer computes ZigZag Minimum Bar Separation on a small deterministic fixture and checks timing, units, and boundary behavior before publication.

Common misconceptions

  • Increasing minimum bars changes readiness even when the price threshold is unchanged.

Concept relationships

Where this concept is used

Tutorials planned

These catalogued topics use this concept, but their complete build has not shipped yet.

  • D08-F01-A02 Important
  • D08-F01-A03 Prerequisite

Evidence and governance

  1. Zig Zag indicator QuantConnect · official platform documentation

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

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

  2. LEAN ZigZag source QuantConnect · first party technical publication

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

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

  3. Pine Script repainting concepts TradingView · official platform documentation

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

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

  4. Closing Price Investor.gov · official standard

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

    Limits: A close is not automatically an adjusted close and may vary by market session convention.

Reviewed by
fintech-builder-batch-011
Last reviewed
2026-08-09
Next review
2027-08-09
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.