PROTECTED SOURCE SCRIPT
Updated

Calc Option Pos Size

58
An indicator to help you calculate the optimal number of options to buy based on the dollar amount of risk you want to take.
It also displays the planned risk-to-reward ratio (RR).
Important metrics such as the number of contracts to buy and the RR are updated live based on the current ticker price.

With spread support, you can simulate buying not at the mid-price but including the spread. This is factored into both the RR calculation and the number of contracts to buy.

You can predefine up to 10 strategies for scaling out of your option position, based on the number of contracts you hold.
Once you activate Manage Trade mode, the indicator shows how many contracts to close when the underlying asset reaches Profit Target 1 or Profit Target 2, along with visual signals.

While in a trade, you can also draw a trailing stop-loss level on the chart to help manage your position.



How to get started
1. Select the same ticker as the one currently shown on your chart.
2. Set the colors to your preferences.
3. Define your “scale-out” strategies.
• Example: If you have 6 contracts — at PT1 sell 3, at PT2 sell 2, and leave 1 as a runner.
4. Set the dollar amount you are willing to risk.
5. Define the planned Entry, Stop Loss, Profit Target 1, and Profit Target 2.
6. Enter the Delta and Spread for the option strike you plan to buy.



Once you are in a trade
1. Update the Date, Hour, and Minute to match the candle when you entered.
2. Set the number of contracts you purchased to activate your predefined scale-out strategy.
Release Notes
An indicator to help you calculate the optimal number of options to buy based on the dollar amount of risk you want to take.
It also displays the planned risk-to-reward ratio (RR).
Important metrics such as the number of contracts to buy and the RR are updated live based on the current ticker price.

With spread support, you can simulate buying not at the mid-price but including the spread. This is factored into both the RR calculation and the number of contracts to buy.

You can predefine up to 10 strategies for scaling out of your option position, based on the number of contracts you hold.
Once you activate Manage Trade mode, the indicator shows how many contracts to close when the underlying asset reaches Profit Target 1 or Profit Target 2, along with visual signals.

While in a trade, you can also draw a trailing stop-loss level on the chart to help manage your position.

Customize the appearance to your need as well!
- Set the color of the levels and boxes as well as the transparency
- Change the position of the labels from right to left edge
- Change the size of the labels and text
- Set how many candles left and right of the current candle the boxes should be drawn


How to get started
1. Select the same ticker as the one currently shown on your chart.
2. Set the colors to your preferences.
3. Define your “scale-out” strategies.
• Example: If you have 6 contracts — at PT1 sell 3, at PT2 sell 2, and leave 1 as a runner.
4. Set the dollar amount you are willing to risk.
5. Define the planned Entry, Stop Loss, Profit Target 1, and Profit Target 2.
6. Enter the Delta and Spread for the option strike you plan to buy.



Once you are in a trade
1. Update the Date, Hour, and Minute to match the candle when you entered.
2. Set the number of contracts you purchased to activate your predefined scale-out strategy.
Release Notes
New features:
• The spread can now be entered directly and no longer needs to be calculated manually using spread and delta.
• Default appearance optimized for a cleaner look on bright charts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.