Explore, visualize, and understand the payoff of custom option strategies built from basic Calls and Puts (Long/Short).
This tool is perfect for learning, teaching, or prototyping strategies in computational finance.
This Python script generates all valid combinations of options (Calls and Puts, Long and Short) and lets you:
- View all possible strategy combinations of N options
- Select one by index
- Instantly see its payoff graph
You can define how many options you want per strategy (2, 3, etc.) and explore hundreds of combinations with one input.
Want to understand the logic line by line?
๐บ YouTube Breakdown (with examples and explanations):
- ๐ช๐ธ In Spanish: Markh4ck on YouTube
- ๐ฌ๐ง In English: MarcAliaga on YouTube
- ๐งพ PDF Guide: included in the repo
- ๐ง Full code: GitHub.com/markh4ck
- ๐ฌ Open discussions and Q&A in the Issues section
This project is open to collaboration!
Whether you want to:
- Improve the option pricing logic ( can be implemented a dynamic premiums)
- Add new option types (exotic options)
- Build a better UI (CLI/GUI/Web)
- Export strategies as CSV or PDF
- Integrate it with real market data
๐ Feel free to fork the repo and submit a Pull Request.
I welcome improvements in:
- ๐ Strategy logic
- ๐ผ๏ธ User Interface / Visualization
- โ๏ธ Performance optimization
- ๐ Localization or language enhancements
All contributions will be reviewed and credited.
Created by Marc Aliaga โ also known as Markh4ck.
I share projects at the intersection of:
- ๐ง Mathematics
- ๐ฐ Financial Engineering
- ๐งฎ Algorithmic Thinking
- ๐ Python for real-world problems
๐ฆ GitHub: github.com/markh4ck
๐ YouTube (Finance & Coding): Markh4ck / MarcAliaga
If you like content like this, consider โญ๏ธ starring the repo and subscribing on YouTube.