OPEN-SOURCE SCRIPT
Auto Fibonacci Fan - Confirmed Pivots [AFD]

A Fibonacci level without context is just another line. What happened when price reached it - and where is price now?
Auto Fibonacci Fan - Confirmed Pivots combines disclosed automatic anchors with a compact decision-context board. It shows the projected levels, retains each
level's last confirmed Tested, Rejected, Broken, or post-break Held event, and
reports whether the last confirmed close is below, inside, or above the current
0.618-0.650 Golden Pocket. These are descriptive chart states, not trade calls.
The anchor and lifecycle contract stays visible: how a leg qualifies, when it
becomes current, when it becomes an archive, and when current geometry freezes
as completed history. The result is recent fan context without an unbounded
field of permanent rays.
AT A GLANCE
- Disclosed qualification - strict confirmed pivots, ATR-normalized displacement, and directional efficiency define which completed legs reach the chart.
- Bounded history - up to four current/completed fans; the oldest leaves first.
- Lifecycle projection - the current fan advances to the latest chart bar, while each completed fan locks at replacement or invalidation. Infinite projection remains optional.
- Five configurable levels - color identifies ratio, not direction or trade quality. Ratio labels are intentionally absent.
- Chart or higher-timeframe anchors - higher-timeframe fans use completed source bars.
- Golden Pocket context - the default-on current-fan 0.618-0.650 projected wedge reports whether the last confirmed close is below, inside, or above it. The range is a convention, not a signal or proven edge.
- Focused presentation - nine color schemes, stepped Gradient shading, one active-band spotlight, native line styles, and optional baselines.
- Compact fan map - a Golden Pocket row plus five color-matched horizontal rails connect each ratio to its projected price and confirmed chart-bar Tested, Rejected, Broken, or post-break Held state, with the latest level event aged in completed bars.
HOW IT WORKS
A pivot is accepted only after the configured bars exist on both sides. An
opposite pivot forms a candidate leg. Its anchor-to-anchor move must pass both a
minimum ATR size and a minimum efficiency threshold. Efficiency is the direct
leg range divided by accumulated true range between the anchors. Passing these
filters means only that the numerical contract was met.
A qualifying opposite leg becomes current and archives the fan it replaced. A
confirmed source close strictly beyond the current origin ends current status
and freezes that fan as bounded history until the four-fan cap removes the
oldest.
Ratio 0 maps to the leg end and ratio 1 to the origin. Colour identifies the
ratio level, not direction, strength, or trade quality.
The Golden Pocket is a separate fixed 0.618-0.650 projected wedge on the
current fan only. The 0.650 boundary is a conventional buffer rather than a
Fibonacci-derived ratio. The pocket does not change qualification and is not
an entry, reversal, probability, or support/resistance claim.
WHY THE LIFECYCLE MATTERS
The default view separates current geometry from retained context without
extending every historical ray forever. Current rays continue to the latest
chart bar. Completed rays stop at replacement or invalidation. Age fading keeps
the bounded history readable without adding signals, scores, or price targets.
HOW TO USE IT
- Start with the Swing preset on a standard time-based chart. It is the fresh default; Scalp, Intraday, and Custom change qualification sensitivity.
- Use Chart or an equal-duration Anchor Timeframe for chart bars, or select a strictly higher timeframe for completed-source anchors.
- Use Lifecycle projection for bounded rays. Fresh visual defaults are Dotted 1 px rays and Gradient fill at 20%; the current price-containing editable band receives bounded emphasis.
- Read the GOLD row first: it reports whether the last confirmed close is BELOW ZONE, IN ZONE, or ABOVE ZONE for the current projected 0.618-0.650 pocket.
- Then read the five level rows: each horizontal rail matches its chart ray and shows projected price plus the last confirmed level interaction. Compact is the default; Large expands it.
WHAT IT DELIBERATELY DOES NOT DO
No manual anchors, horizontal retracement grid, confluence, signals, targets,
scores, alerts, or backtests. Qualified means only that the disclosed numerical
filters passed; it is not a probability or recommendation.
DATA AND TIMEFRAMES
Confirmed pivots arrive after their right-side bars exist. Higher-timeframe
results also wait for a completed source bar. An equal-duration selection uses
chart bars. A lower timeframe or unknown interval draws no fan and displays the
specific problem plus correction rather than silently falling back.
Nonstandard charts can supply synthetic or approximate OHLC values, so parity
with standard candles is not claimed.
ORIGINALITY AND CREDIT
Fibonacci fan geometry is established. This clean-room implementation adds a
disclosed automatic anchor, two-filter qualification, bounded queue, and finite
lifecycle contract in one focused open-source fan. It does not claim unique or
predictive geometry.
Public open source under the Mozilla Public License 2.0. (c) Auction Foundry.
This indicator describes confirmed swing geometry from chart data. It is not a
forecast, a signal, or financial advice.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Auction Foundry - See the Auction more clearly.
All content provided is for informational & educational purposes only.
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X:@AuctionFoundry
All content provided is for informational & educational purposes only.
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X:@AuctionFoundry
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Auction Foundry - See the Auction more clearly.
All content provided is for informational & educational purposes only.
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X:@AuctionFoundry
All content provided is for informational & educational purposes only.
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X:@AuctionFoundry
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.