Mechanical pivot and break rules make a visual idea testable.
Free lesson· Module 04 · 10/31
01 / Core concept
Core concept: Structure rules lab
Mechanical pivot and break rules make a visual idea testable.
How it works
A reproducible experiment separates event detection, execution, exit and scoring. Label all eligible pivots, freeze the threshold, and compare a close-based rule against a wick-based rule on held-out data. Report sample size, net costs and drawdown.
02 / Worked example
Worked example: Structure rules lab
Use two bars on each side for pivots and a close beyond for breaks.
Try it yourself: Why use a held-out period?
Explanation: To assess the rule on data not used to choose its parameters.
03 / Risk and limitations
Limitations and common mistakes
Confirmation delay must be included in the test.
Separate the observation from the trading decision. Test the rule with realistic execution and costs; a hypothetical example is not evidence of a profitable strategy.
Before you begin: Complete structure mapping, break and transition lessons.
Write deterministic classification rules
Audit ambiguous cases
Separate rule design and evaluation
Mechanism and interpretation
A structure research specification needs inputs, pivot selection, tie handling, confirmation delay, state transitions and invalidation. Write each as a conditional statement that another analyst can execute without interpreting your chart. Preserve an unresolved state for mixed evidence. Develop rules on one sample and evaluate the frozen specification on later or otherwise held-out observations. Changing labels after inspecting outcomes turns evaluation into further design.
Worked case — synthetic data
Synthetic protocol uses one-bar-side strict pivots, alternate-extreme filtering and close-based breaks. Highs 100,104,103 identify the middle high only after the third bar. A later close 105 breaks that confirmed high. If the same bar has low below the previous selected low, the close-based up-break and extreme-based low observation should both be recorded rather than resolved by a discretionary bullish label. The protocol decides their effect on state.
Context and failure modes
Two implementations can differ because of timestamp alignment or equal-price handling even when the verbal description sounds identical. Test edge cases before measuring performance, and retain version identifiers for any rule changes.
Practice task
Write expected outputs for equal highs 10,10,9 under a strict pivot rule, then under an inclusive rule with earliest-tie selection.
Worked practice answer
The strict rule rejects the tied high. The inclusive earliest-tie version may select the first eligible tied extreme, subject to its required left-hand context; that missing context must be supplied rather than invented.
Topic assessment
Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.
1. What makes a rule deterministic?
It contains many indicators
Identical inputs produce identical labels under declared conditions
It predicts the market perfectly
Reveal answer and explanation
B. Reproducibility concerns classification, not profitability.
2. What happens when a rule is tuned on held-out outcomes?
Its results become more independent
All earlier trades vanish
That sample is no longer a clean held-out evaluation
Reveal answer and explanation
C. Observed outcomes have influenced the specification.
3. Why version the specification?
To link each result to the exact rule used
To guarantee the newest version wins
To hide failed rules
Reveal answer and explanation
A. Versioning preserves an audit trail across legitimate revisions.
Further reading
Original TradeViora Academy explanation and hypothetical example. See the primary-reference scope below. External resources do not endorse or independently verify this lesson.
Inspect actual provider-hosted market prices or load your own historical OHLCV in the Market Chart Lab. For volume-at-price and bid/ask analysis, use the profile workbench with appropriate data. These are exploration tools, not verified historical examples of this specific lesson.
Source scope
The explanations, definitions used for chart labels, synthetic cases, and exercises above are original. Exchange documentation is a reference for order mechanics; it does not validate a chart strategy or identify trader intent. Indicator documentation provides formula context where applicable.