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.