rmcd1024 / derivmkts Goto Github PK
View Code? Open in Web Editor NEWR package for option pricing
License: Other
R package for option pricing
License: Other
Theta and psi are divided by 365 (scaled to be daily), but this needs to be specified in the greeks function help.
Add parameter to Monte Carlo functions to enable averaging to start at an intermediate date
Want an impvol
function that works like the greeks
function
Functions relying on random number generation are now highly confusing in 0.2.5:
simprice
function saves the random seed silently, so repeated invocations will generate the same prices. This could be confusing; need an explicit argument to save the seed or notbinomplot(40, 40, .3, .08, 5, 0.1, 20, setylim=TRUE, ylimval=c(39, 150), plotvalues = TRUE)
The plotted values do not overlay the correct points. Probably need to subset the various matrices either before printing or carefully while printing.
Replace if () else
with ifelse
Hi, initially i strated calculating options Greeks using Rquantlib package but its installation is very difficult.
So, i decided to use "derivmkts" and found it good untill code was in sequential mode, but when i tried it in parallel mode using doMC and foreach on linux, it not working.
as i am using it for strategy development for algorithmic trading, i have to make it parallel, please help ....
Options on futures need special handling because the futures premium is zero. The bond component of the replicating portfolio is the price of the option. Either add a parameter to binomopt
or create a wrapper function that calls binomopt
.
If simulating multiple assets, should be able to name (rather than just enumerate) the assets. Perhaps if the covariance matrix has names these can be automatically used.
It makes sense to have complete and be either wide or long, but if long, use cases make the most sense if dataframe is also complete.
Add list that controls scaling? Default would be `scalegreeks=list(delta=1, gamma=1, theta=1/365, vega=1/100, rho=1/100, psi=1/100)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.