OPEN-SOURCE SCRIPT
ATR% Credit Spread Strike Guide

This indicator helps options traders quickly estimate the **nearest reasonable short strike area** for a credit spread using an **ATR-based distance model**.
It calculates the stock’s current **ATR%** and applies a user-defined multiple, then plots horizontal reference levels from the current price:
* **Lower Min Price** for the put side, useful when evaluating **bull put spreads**
* **Upper Min Price** for the call side, useful when evaluating **bear call spreads**
The goal is simple: instead of using a flat percentage for every stock, this tool adjusts the minimum strike distance based on the stock’s recent daily movement.
### How it works
* Uses **ATR over a selectable lookback period** (default: 20)
* Converts that movement into a percentage of price
* Applies a selectable **ATR% multiple** (1x to 4x, default: 3x)
* Draws a **horizontal line** at the current upper and/or lower threshold
* Optional labels show:
* ATR%
* Total distance %
* Current level price
### Why use it
A flat 5% rule can be too tight for volatile names and too wide for calmer names. This script gives a faster way to visualize a volatility-adjusted threshold before checking the actual option chain.
### Practical use
* Use the plotted level as the **closest strike area worth considering**
* Then confirm:
* option premium is acceptable
* return on risk meets your plan
* the strike still makes sense relative to expected move, trend, and support/resistance
### Important note
This is a **charting aid**, not a trade signal. It does not account for implied volatility, expected move, liquidity, earnings risk, assignment risk, or probability of touch. Always confirm with the option chain
It calculates the stock’s current **ATR%** and applies a user-defined multiple, then plots horizontal reference levels from the current price:
* **Lower Min Price** for the put side, useful when evaluating **bull put spreads**
* **Upper Min Price** for the call side, useful when evaluating **bear call spreads**
The goal is simple: instead of using a flat percentage for every stock, this tool adjusts the minimum strike distance based on the stock’s recent daily movement.
### How it works
* Uses **ATR over a selectable lookback period** (default: 20)
* Converts that movement into a percentage of price
* Applies a selectable **ATR% multiple** (1x to 4x, default: 3x)
* Draws a **horizontal line** at the current upper and/or lower threshold
* Optional labels show:
* ATR%
* Total distance %
* Current level price
### Why use it
A flat 5% rule can be too tight for volatile names and too wide for calmer names. This script gives a faster way to visualize a volatility-adjusted threshold before checking the actual option chain.
### Practical use
* Use the plotted level as the **closest strike area worth considering**
* Then confirm:
* option premium is acceptable
* return on risk meets your plan
* the strike still makes sense relative to expected move, trend, and support/resistance
### Important note
This is a **charting aid**, not a trade signal. It does not account for implied volatility, expected move, liquidity, earnings risk, assignment risk, or probability of touch. Always confirm with the option chain
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Difficult Takes a day, Impossible Takes a Week!
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Difficult Takes a day, Impossible Takes a Week!
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.