OPEN-SOURCE SCRIPT
Candle Event Sequence Lens [AFD]

Which printed first — the high or the low?
A 15-minute candle shows four prices but hides the order they printed in. Candle Event Sequence Lens opens the last closed candle into its 1-minute and 5-minute candles, with recent higher time frame candles beside it, so the sequence sits right on your chart.
What you see
- The last closed candle split into smaller candles (1m and 5m by default), drawn to the right of the price bars
- Up to 6 recent candles of up to 3 other time frames next to it (30m, 1h and 2h by default)
- Cyan outline: the first 1-minute bar that reached the candle's high. Magenta: the low
- Amber outline: one bar holds both, so the order inside it is unknown
- High/Low price tags on every row. Hover a breakdown tag for the times, e.g. "Low first 15:45 · high 15:51"
- An orange box on the price chart marks the candle being broken down
- An arrow above each row's newest candle
Setup
- Runs on standard 5 to 60 minute charts. It draws right of the last bar; if it is cut off, scroll the chart left
- Stacked (default): each row has its own scale; read prices from the tags
- Beside: real prices, lined up with the price axis. A group too tall for the view is scaled to fit and marked "scaled"
- Up to 3 breakdowns (Auto or 1, 2, 3, 5, 10, 15, 30 min) and up to 3 other time frames (Auto, minutes, D or W)
- Custom levels: enter two prices to see which 1-minute bar reached each one first
Good to know
- Order inside a single minute is never known. Amber says so instead of guessing
- "Reached" means a 1-minute bar's range included the price, not a confirmed trade or fill
- Missing, gapped or mismatched 1-minute data shows "order unknown"
- On a coarser row like 5m, amber means both fell in that group, not in the same minute
- The breakdown moves to the newest candle as each chart candle closes. The newest side candle (dashed outline) keeps changing until its period closes
- Fixed choices do not adapt to the chart: a time frame equal to the chart is hidden, a shorter one shows only the last chart bar's candles, and a breakdown must be shorter than the candle. Auto follows the chart
Describes chart history only: no signals, no forecasts. Educational use; not financial advice. Open-source under MPL 2.0.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Auction Foundry — see the auction more clearly. Educational tools; not investment advice.
Discord support: discord.gg/df6XEnyGC6
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X: @AuctionFoundry
Discord support: discord.gg/df6XEnyGC6
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X: @AuctionFoundry
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Auction Foundry — see the auction more clearly. Educational tools; not investment advice.
Discord support: discord.gg/df6XEnyGC6
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X: @AuctionFoundry
Discord support: discord.gg/df6XEnyGC6
Website: auction-foundry.io
Instagram: instagram.com/AuctionFoundry
X: @AuctionFoundry
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.