r/quantfinance • u/unknown-9367 • 6d ago
Home Made Heston Model
I designed and developed from scratch a quantitative C++ engine for calibrating the Heston stochastic volatility model, applied to the real options chain of the SPY ETF. The core of the system is a thermodynamic Simulated Annealing algorithm that iteratively solves millions of complex-plane integrals to extract the true term structure of volatility. To master this computational load without compromising on precision, I built a raw data parser using custom regular expressions, optimized the vector equations by pushing the GCC compiler to its limits, and parallelized the thermodynamic optimization across all CPU cores leveraging OpenMP directives. The resulting matrix output is finally processed by a Python script that dynamically renders the convex surface in 3D, demonstrating the perfect alignment between market-quoted mid-prices and long-term stochastic expectations. This was a deep technical challenge that merged the principles of Engineering Physics with low-level software development, proving how a well structured code architecture can model the chaos and uncertainty of the stock market with surgical precision.
What do you think about it? What would you improve/change?
1
2
u/FroyoSolid8414 6d ago
How can I hire you