• Countdown to the 2025 QuantNet rankings. Join the list to get the ranking prior to public release!

Few algorithms in quant finance - short writeup

Nice stuff, Quasar. Some ideas

1. std:;array<> is fixed/limited, use std::vector
2. The if-else C/P test should be at main() level, not embedded in CRR etc. (AFAIR I mentioned this already somewhere down the tracks?)
3. Payoff() should be a global function (pointer)
4. loops, use std::size_ (unsigned)
5. namespace always, std::exp. std::pow,..
6. Accuracy tests against exact, quasi-exact solutions.


7. Code review and improvement. Next version.
8. Classes are top-heavy .. too many member data ==> not SRP, maintenance problem
 
Back
Top Bottom