TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Zigzag repainting and the final leg

Study zigzag repainting and the final leg through mechanisms, a synthetic worked case, practice, and explained assessment.

Market Structure

APPLIED STUDY · ORIGINAL LESSON

Learning plan and prerequisites

Before you begin: Complete percentage-reversal swings and pivot confirmation timing.

Mechanism and interpretation

A zigzag display joins selected extrema to simplify a price path. Its appearance depends on the underlying selection algorithm. In this lesson, confirmed vertices come from the previously defined 5% close-reversal rule, while a final dashed segment extends from the latest confirmed pivot to the current candidate. That final endpoint is provisional and may move when a new extreme arrives. Repainting in this limited sense is expected behaviour; presenting a later final endpoint as if known earlier is the research error.

Distinguish three objects in stored data: confirmed pivot records, the current candidate and a rendered line. A line may be redrawn without changing already confirmed pivot records. Other implementations recalculate earlier vertices using depth or deviation filters, so their revision scope can be broader. Test the actual output instead of assuming every product called zigzag follows this lesson. Record a snapshot after each observation and compare the immutable confirmed list with the changing candidate field.

Worked case — synthetic data

A synthetic confirmed low is 100. During upward search, closes 105,110 and 108 leave a candidate high 110. A chart snapshot at that time shows a provisional leg from 100 to 110. The next close 112 moves the candidate endpoint to 112; it does not mean the earlier snapshot was calculated incorrectly. With a 5% reversal rule, confirmation requires a later close at or below 112×0.95=106.4. A subsequent 106 close qualifies and confirms the 112 high.

If a historical screenshot made after 106 draws the solid high marker on the 112 observation, an analyst must still associate availability with the later 106 observation. Entering at 112 on the basis of its completed swing label would use information from the future. An audit can retain rows such as observation 3: candidate 110, no new confirmed high; observation 4: candidate 112; observation 5: confirmed 112 with confirmation price 106. The price gap between 112 and 106 is part of the label's delay, not a cost that disappears when the marker is moved backward.

Context and failure modes

Platforms may use intrabar extrema, fixed-depth pivots or their own alternation rules. Their final legs may have different stability guarantees. Small data corrections can also revise past extrema independently of algorithmic development. Keep the input version and map version separate. A clean historical line omits the uncertainty that existed during formation; its visual simplicity is not evidence of a tradable turning-point forecast.

Practice task

A confirmed low 50 has a provisional high 55, then a new close 57. Under the 5% close-reversal rule, calculate the updated threshold. A later close 54.5 arrives. Is 57 confirmed yet, and which endpoint should remain provisional?

Worked practice answer

The threshold is 57×0.95=54.15. Since 54.5 is above 54.15, the high 57 is not confirmed. The developing endpoint remains 57 and the latest confirmed vertex remains the earlier low 50. A later qualifying close is still required.

Topic assessment

Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.

1. Which revision is expected in the stated display?

  1. Backdating every decision to the endpoint
  2. Moving the provisional endpoint when a new extreme arrives
  3. Changing all confirmed records without explanation
Reveal answer and explanation

B. A developing final leg explicitly represents incomplete information.

2. When was the 112 high available as confirmed?

  1. When 112 first traded
  2. Before the 100 low
  3. When the later 106 close qualified
Reveal answer and explanation

C. Confirmation requires the subsequent reversal condition.

3. What does a snapshot audit preserve?

  1. The map as known at each observation
  2. Only the final attractive chart
  3. Future extrema in every historical row
Reveal answer and explanation

A. Sequential snapshots reveal what was provisional and what was already fixed.

Primary references and scope

Original explanation and synthetic calculations. Chart thresholds are explicit research conventions, not exchange rules or proof of predictive ability.