• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

any tips for coding black scholes model with today's and expiration date?

Joined
1/15/15
Messages
238
Points
28
So I know how to code it with days to expiry but am unsure as to how to code it using two separate dates, for instance, 9/14/04 to 3/21/14. Any advice would be great. Is there a similar problem in the c++ program? Thanks!
 
You mean you want the trading date to be 9/14/04 but the expiry of the option to be 3/21/14?
You'll need to use a date library and handle holidays appropriately to retrieve the DCF of the time to expiry?
 
Back
Top