OPEN-SOURCE SCRIPT
Option Strike Distance - Husam Kallangodan

A simple BTC options dashboard designed to monitor the distance between spot price and your short call/put strikes.
This indicator helps track strike buffer, ATR distance, DTE, and risk status in one view, making it easier to monitor a short strangle or similar options-selling setup.
What it shows
Call Buffer (%) — Percentage distance between BTC spot and the short call strike.
Put Buffer (%) — Percentage distance between BTC spot and the short put strike.
Call / Put ATRs — Distance to each strike expressed in ATRs.
ATR (14) — Current 14-period ATR.
ATR % — ATR expressed as a percentage of BTC spot.
DTE — Time remaining until the configured Friday 1:30 PM IST expiry.
4H Candles — Approximate number of 4-hour candles remaining until expiry.
Status — Overall status based on the closest short strike.
Buffer Status
The status is determined by the nearest short strike:
🟢 SAFE — Buffer above the Safe Threshold
🔵 WATCH — Buffer between Safe and Watch thresholds
⚪ ALERT — Buffer between Watch and Defend thresholds
🔴 DEFEND — Buffer below the Defend Threshold
The default thresholds are:
SAFE: >12%
WATCH: >8%
ALERT: >5%
DEFEND: ≤5%
All thresholds can be adjusted from the indicator settings.
Alerts
The indicator provides separate alerts when either the call-side or put-side buffer crosses below the configured Alert Trigger (%).
For example, with an Alert Trigger of 7%, an alert is generated when the respective strike's buffer crosses below 7%.
Inputs
You can configure:
Short Call Strike
Short Put Strike
Safe Threshold
Watch Threshold
Defend Threshold
Alert Trigger
This indicator is intended as a monitoring and risk-management aid, not as a prediction tool or a standalone trading strategy.
The buffer percentages are calculated relative to the current BTC spot price, while ATR values provide additional context around current market volatility.
Always consider volatility, liquidity, time to expiry, option Greeks, market structure, and your own risk management before making trading decisions.
This indicator helps track strike buffer, ATR distance, DTE, and risk status in one view, making it easier to monitor a short strangle or similar options-selling setup.
What it shows
Call Buffer (%) — Percentage distance between BTC spot and the short call strike.
Put Buffer (%) — Percentage distance between BTC spot and the short put strike.
Call / Put ATRs — Distance to each strike expressed in ATRs.
ATR (14) — Current 14-period ATR.
ATR % — ATR expressed as a percentage of BTC spot.
DTE — Time remaining until the configured Friday 1:30 PM IST expiry.
4H Candles — Approximate number of 4-hour candles remaining until expiry.
Status — Overall status based on the closest short strike.
Buffer Status
The status is determined by the nearest short strike:
🟢 SAFE — Buffer above the Safe Threshold
🔵 WATCH — Buffer between Safe and Watch thresholds
⚪ ALERT — Buffer between Watch and Defend thresholds
🔴 DEFEND — Buffer below the Defend Threshold
The default thresholds are:
SAFE: >12%
WATCH: >8%
ALERT: >5%
DEFEND: ≤5%
All thresholds can be adjusted from the indicator settings.
Alerts
The indicator provides separate alerts when either the call-side or put-side buffer crosses below the configured Alert Trigger (%).
For example, with an Alert Trigger of 7%, an alert is generated when the respective strike's buffer crosses below 7%.
Inputs
You can configure:
Short Call Strike
Short Put Strike
Safe Threshold
Watch Threshold
Defend Threshold
Alert Trigger
This indicator is intended as a monitoring and risk-management aid, not as a prediction tool or a standalone trading strategy.
The buffer percentages are calculated relative to the current BTC spot price, while ATR values provide additional context around current market volatility.
Always consider volatility, liquidity, time to expiry, option Greeks, market structure, and your own risk management before making trading decisions.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.