OPEN-SOURCE SCRIPT

TastyStocks S/R Levels

303
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.

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.