An Option Payoff visualizing tool, that allows you to create strategies, add and modify option legs, visualize their payoffs as it would be on the expiry date and save them to local storage. The site takes, "Buy/Sell", "Strike Price", "Premium", and "PE/CE" (Put/Call) as inputs to plot the payoff. In the future, "Days to Expiry" input, will be added to make the payoff more comprehensive and allow strategies like "Calendar Spreads" to be visualized.
- Short Straddle.
- Short Strangle.
- Bull Call Spread.
- Bull Put Spread.
- Edit/Delete option legs with their respective buttons.
- Select/Unselect option legs with the checkbox.
- Save modified (custom) strategies as new, or update saved strategies.
- Persistence of saved strategies through local storage.
- Hash routing, to select a strategy from the URL without throwing a 404 error. (Example - https://anshuthopsee.github.io/option-payoff/#/Bull-Call-Spread). The strategy name is case sensitive and all the words should be joined with "-" (hyphen).
- Numeric input value range: 0.1 >= value < 10000.
- Migrated state management from React Context to Redux Toolkit.
- Number of contracts input.
- Zoom functionality for chart.