The published implementation confirms pivots, tests candidate pairs against four validity rules, selects the nearest surviving line, and distinguishes violation from age retirement.
Confirmation · Candidates · Validity · Retirement
The practical question
Which confirmed pair survived every validity check, and what exact event removes it from the live set?
Auction Foundry publication capture from TradingView. It is an example chart, not live market data.
The trendline-selection contract
The published implementation does not connect the last two visible pivots by default. It constructs, rejects, selects, and retires candidates under separate rules.
Confirmation
A pivot becomes usable only after the configured number of bars has formed to its right, even though its label and line anchor are drawn at the earlier origin.
Qualification
The pair must connect the same pivot side, progress in the required direction, avoid intermediate pierces, and remain unviolated through the current confirmed bar.
Selection
Among qualifying pairs, the engine displays the candidate whose current projected price is nearest the current close for that side and length tier.
Retirement
A live line leaves the active set when a confirmed violation occurs or when its anchor exceeds the configured age; those exits have different alert behavior.
01
The line cannot predate pivot confirmation
A pivot of length N is known only after N bars have formed to its right. The line may anchor at the earlier pivot bar for geometry, but it was not an available decision input at that origin. A historical review must timestamp both origin and confirmation.
The default swing strength is 10. The short tier uses that length, the medium tier twice that length, and the long tier four times that length, capped at 200. With all three tiers enabled on both sides, the script can maintain up to six active lines: three descending and three ascending.
02
The candidate search is finite
For each side and length tier, the engine searches a configurable number of confirmed pivots; the default is 10. High pivots can form descending candidates and low pivots ascending candidates. Optional minimum anchor span and touch requirements can further reduce the set.
Anchor price can use the pivot wick or body, while pivot detection itself remains wick-based. A pair-exclusion rule prevents the same anchors from being duplicated across tiers, so the displayed set is not simply six copies of one geometric line.
03
Every pair must survive four validity checks
First, the anchors must be on the same side. Second, they must be progressive: the second high must be lower for a descending line, and the second low higher for an ascending line. Third, no intermediate bar may pierce the segment beyond the configured ATR-based tolerance. The default pierce tolerance is 0.25 ATR.
Fourth, no bar after the second anchor through the current bar may have violated the projected line under the selected wick-or-close basis and violation tolerance. The checks are refusal rules: failing one disqualifies the pair rather than reducing a score.
04
Selection is proximity, not confidence
The engine evaluates all qualifying pairs for a side and tier, projects each candidate to the current bar, and selects the line whose projected price is nearest the current close. Nearest is a display-selection rule after validity; it does not rescue an invalid pair.
Touch count records contacts inside an ATR-based tolerance band around the projected line. It is descriptive history, not a strength score. Several touches in one congestion are not independent observations, and a higher count does not imply a higher probability of holding.
05
Violation and age retirement are different exits
A live line is violated only on a confirmed bar under the selected wick-or-close rule. Violated lines can be dimmed and retained for review, and the published script exposes separate ascending and descending violation alerts.
A line also retires when its anchor exceeds the configured “Bars to Apply” limit, which defaults to 300. Age retirement is not a violation and does not fire a violation alert. Turning a line family off deletes those lines rather than preserving them as retired geometry.
BEFORE YOU USE THE IDEA
5 questions for your chart
01
When did each anchor confirm, and where is it drawn?
02
Which tier, search depth, anchor basis, and optional span or touch filter produced the candidate set?
03
Did the selected pair pass all four validity checks under the configured tolerances?
04
Was the displayed line selected for proximity, and is that being misread as confidence?
05
Did the line exit by confirmed violation, age retirement, or a display setting?
WHAT IT CAN CLARIFY
Makes pivot confirmation, candidate rejection, line selection, and retirement separately inspectable.
Can compare three length tiers per side without duplicating the same anchor pair.
Distinguishes a confirmed violation from non-directional age retirement.
LIMITATIONS TO RESPECT
Pivot confirmation delay means historical anchor placement precedes decision-time availability.
Strength, search depth, tier lengths, anchor basis, and tolerances materially change the surviving set.
A valid line, nearest selection, or touch count does not predict a hold, break, target, or trade outcome.
RELATED AUCTION FOUNDRY TOOLS
See the framework in a published script.
Read the manual for behavior and limitations, or open the public listing directly on TradingView.
Auto Trendlines
Confirmed pivot pairs, pierce-tested candidates, touches, and retirement.
Standard, Schiff and Modified Schiff pitchforks from three confirmed swing pivots, the bar each became usable, and the touches and ending that followed.
Bullish and bearish Wolfe Waves on confirmed swing pivots, the 1–4 line as a reference, and the Entry, Stop and R-multiple levels each wave carried to its ending.
These links document the underlying market mechanics, calculation conventions, or platform behavior. They are starting points for independent study, not endorsements.
Educational notice: Auction Foundry LLC provides educational charting tools and general market commentary only. Nothing here is investment, financial, legal, tax, or other professional advice.
Auction Foundry LLC provides educational charting tools and general market commentary only. This is not investment, financial, legal or tax advice, and nothing here is a recommendation, offer or solicitation to buy or sell any instrument. Auction Foundry is not registered with the SEC as an investment adviser, nor with the CFTC as a commodity trading advisor, and is not an NFA member.
Trading involves risk, including loss of principal. Losses can exceed a modeled stop and, for leveraged or margin products, can exceed the amount initially deposited or invested. Indicators can be wrong, delayed or unsuitable for your circumstances, and past or hypothetical results do not predict future results. Free access does not change any of this. Consider your objectives and consult a licensed professional before acting. Using these tools does not create an advisory or brokerage relationship.
Auction Foundry LLC is an independent publisher and is not affiliated with, endorsed by, or sponsored by TradingView, Inc. “TradingView” is a trademark of TradingView, Inc., used here only to identify the platform our scripts are published on. Scripts are published to TradingView as a community author on the same terms as any other author.