BS_price = function(St, K, r, T, t, sigma) { d1 = (log(St/K) + (r + (sigma^2)/2) * (T-t))/(sigma * (T-t) ^ 0.5) d2 = d1 - sigma * (T-t)^0.5 call = pnorm(d1) * St - pnorm(d2) * K * 2.73^(r*(t-T)) print (call) } BS_price(11377.75, 10000, 0.06, 38/365, 0, 0.05)
-
Notifications
You must be signed in to change notification settings - Fork 8
evijit/Finance_Graph_Theory
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Modelling Connectedness of Firms in Financial Markets with Heterogeneous Agents
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published