OPEN-SOURCE SCRIPT
Actualizado Swing Point - VALID/ INVALID

This indicator identifies reliable swing highs and lows by combining structural patterns with momentum confirmation. It first looks for a standard three-candle peak or valley, allowing up to two candles on the right side to form the necessary lower low or higher high. Once the structure forms, it requires a candle body to close beyond the extreme wick of the peak or valley within that same two-candle window. If both conditions are met, it plots a red or green triangle to mark a confirmed swing point; if the structure forms but the momentum close fails, it plots a purple triangle to warn you of a setup that lacked the power to follow through.
Notas de prensa
The Logic: It looks for a classic 3-candle peak or valley, giving the market up to two candles on the right side to complete the structural shape (Condition 1). It then checks if a candle body convincingly closed past that peak/valley's extreme wick within that same two-candle window (Condition 2).The Signals: If both conditions are met, it plots a Red (High) or Green (Low) triangle, marking a high-conviction structural reversal point. If the shape forms but the body close fails, it plots a Purple triangle, warning you of an unconfirmed swing—which often acts as a liquidity trap or a target.
The Engine: It features a dual-rendering system with a built-in toggle. You can either show infinite historical swings for deep backtesting, or flip the toggle to show an exact, strict count (e.g., only the last 20 total swings) using invisible labels to keep your live trading chart completely clutter-free.
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.
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.
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.