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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.