OPEN-SOURCE SCRIPT
TastyStocks S/R Levels

TastyStocks S/R Levels v2 automatically plots the key support and resistance levels used in professional options trading analysis — previous period highs/lows, confirmed swing pivots, and gap fill targets — all extending to the right edge of the chart with price labels for quick reference.
What it draws:
Previous Day / Week / Month Highs & Lows — classic institutional reference levels that act as magnet prices and are widely watched for reversals and breakouts
Swing Pivot Highs & Lows — confirmed multi-bar pivot points anchored at the exact bar where the pivot formed, automatically deduplicated so nearby levels don't clutter the chart
Gap Fill Levels — detects opening gaps above or below the prior close and marks the fill target with a dashed line; lines automatically disappear once price fills through them
Key features:
All lines extend to the right so levels remain visible as new bars form
Price labels float at the right edge for instant level identification
ATR-based merge tolerance prevents duplicate levels from printing too close together
Gap fill lines self-delete once the gap is filled — no manual cleanup needed
Fully customizable colors, line widths, pivot lookback periods, minimum gap size, and max level counts
Resistance levels in red, support levels in green, gap fills color-coded by direction
Best used on: Daily and session charts for swing and options trade planning. Works on any ticker.
What it draws:
Previous Day / Week / Month Highs & Lows — classic institutional reference levels that act as magnet prices and are widely watched for reversals and breakouts
Swing Pivot Highs & Lows — confirmed multi-bar pivot points anchored at the exact bar where the pivot formed, automatically deduplicated so nearby levels don't clutter the chart
Gap Fill Levels — detects opening gaps above or below the prior close and marks the fill target with a dashed line; lines automatically disappear once price fills through them
Key features:
All lines extend to the right so levels remain visible as new bars form
Price labels float at the right edge for instant level identification
ATR-based merge tolerance prevents duplicate levels from printing too close together
Gap fill lines self-delete once the gap is filled — no manual cleanup needed
Fully customizable colors, line widths, pivot lookback periods, minimum gap size, and max level counts
Resistance levels in red, support levels in green, gap fills color-coded by direction
Best used on: Daily and session charts for swing and options trade planning. Works on any ticker.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.