OPEN-SOURCE SCRIPT
Zaktualizowano 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.
Informacje o Wersji
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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.