OPEN-SOURCE SCRIPT
Post-Exercise Option Value

This indicator visualizes the post-exercise value of stock options for a single underlying symbol.
It calculates what an options position would be worth after exercising, based on the difference between price and strike, and displays how that value changes over time using close, high, and low prices.
What it shows
Calculation logic
The indicator uses the following formula:
Pine Script®
This reflects the net value of shares received if options were exercised at the strike and valued at the current market price.
Inputs
Alerts
Optional alerts are available for:
Alerts are evaluated on bar close and can be enabled individually via TradingView’s alert dialog.
Notes
This tool is useful for understanding how the value of an exercised options position evolves relative to price movement.
It calculates what an options position would be worth after exercising, based on the difference between price and strike, and displays how that value changes over time using close, high, and low prices.
What it shows
- Value at Close – post-exercise value using the candle’s closing price
- Value at High – post-exercise value using the candle’s high
- Value at Low – post-exercise value using the candle’s low
- Shaded regions highlight the intrabar range between close↔high and low↔close
- Values are floored at $0 when price is below the strike
Calculation logic
The indicator uses the following formula:
Post-exercise value = max((Price − Strike) × Units × Multiplier, 0)
This reflects the net value of shares received if options were exercised at the strike and valued at the current market price.
Inputs
- Strike price (exercise price)
- Number of units (shares or share-equivalent units)
- Multiplier (e.g., 100 for standard US equity option contracts)
- Custom value target for alerts
Alerts
Optional alerts are available for:
- Price crossing above or below the strike
- Post-exercise value crossing above (or below) a user-defined dollar target
Alerts are evaluated on bar close and can be enabled individually via TradingView’s alert dialog.
Notes
- Designed for tracking a single ticker
- Does not model time value, volatility, or option premiums
- Intended for visualization and monitoring purposes only
This tool is useful for understanding how the value of an exercised options position evolves relative to price movement.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน