/options-strat-payoff

An app that calculates and visualises the payoff of various options strategies.

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

Options Strategies Payoff Calculator

Hey there, welcome to the app! Below you will find the walkthrough of the app's functions along with some tips for users.

📧 If you find the web-app useful, please connect with me !

Linkedin URL: https://www.linkedin.com/in/saimanish-prabhakar-3074351a0/

App Link: https://options-strategies-payoff-calculator.streamlit.app/

🌟 WALKTHROUGH

🔶 Step 1: Select an options strategy from the dropdown list

Screenshot 2024-05-05 at 19 25 31

🔶 Step 2: Enter the parameter values for chosen strategy

Screenshot 2024-05-05 at 19 28 04

🔷 Parameters glossary:

🔹 Strike Price:

  • The predetermined price at which the holder of an option can buy (call) or sell (put) the underlying asset.
  • This is the central point around which potential profit or loss is calculated.

🔹 Premium:

  • The cost of the option contract itself, paid by the buyer to the seller.
  • This is an upfront expense, factored into the net profit or loss calculations.

🔹 Start Expiration Price:

  • The lowest underlying asset price that the calculator will consider when generating potential profit/loss scenarios.

🔹 End Expiration Price:

  • The highest underlying asset price included in the calculator's analysis.

🔹 Step Size:

  • The incremental amount by which the underlying asset's price changes in the calculator's simulations.
  • For example, a step size of $5 means the calculator will show profitability at underlying asset prices of $50, $55, $60, and so on.

🔹 Note that a strategy may have multiple strikes and premiums. For illustration purposes, we have chosen to use the 'long Call' options strategy as part of the walkthrough.

🎉 Voila! The app will have computed the net-payoff table, graph and break even point(s) according to your inputs!

Screenshot 2024-05-05 at 19 38 59 Screenshot 2024-05-05 at 19 39 07

🌟 USER TIPS

🔻 TIP 1: Make sure strike price(s) are between start and end expiration prices.

All strike prices must be in between the range of expiration prices denoted by the start expiration price, end expiration price and step size which creates the range between the two prices according to the step specified.

Screenshot 2024-05-05 at 19 55 49

🔻 TIP 2: Read parameter labels carefully to input higher / lower values for the appropriate strikes / premiums

Strategies such as a bull call spread (see illustration below) require multiple inputs for various parameters. It is imperative that you enter the right values for the appropriate parameter to avoid receiving an error such as the one below.

Screenshot 2024-05-05 at 20 04 51 Screenshot 2024-05-05 at 20 05 18

🔻 TIP 3: How to reset parameter values

Sometimes, you might enter a combination of values by mistake that completely mess up the net-payoff table and graph. To solve this, simply re-select the 'strategy' as ' - ' and then continue by selecting the strategy again where all values will be reset.

Screenshot 2024-05-05 at 20 12 16