Smart Levels Indicator: Failed Breakout Detection & Unbroken Filter
https://www.tradingview.com/script/iIjKqxlW-Smart-Levels/ ๐ What's new:
Failed Breakout (FB) Detection The indicator now automatically identifies levels with failed breakouts โ where two consecutive pivots of the same type show diminishing amplitude, signaling rejection. FB levels are highlighted with a separate color and marked with "FB" in the label.
Unbroken Filter Show only levels that price has never fully broken through. Two break detection modes: by candle Close or by Wick, with an adjustable noise buffer to avoid false breaks from spread.
FB Pivot Markers Individual pivot points belonging to FB levels are now marked directly on the chart (โผ / โฒ with price), so you can see exactly which touches formed the level.
Smart Alerts Alert system rebuilt on alert() โ fires once per new FB level, updates automatically without restarting the alert. No manual reset needed.
โก๏ธ Improvements:
Level labels now show status: โ active / โ broken
Broken levels displayed in faded color (optional, toggleable)
max_lines_count and max_labels_count increased to 500
Recalculation optimized โ only triggers on new pivot or last bar
