Integrating QuantLib with R and Web – Barrier Options Pricer

Some of QuantLib functionality is ported to R in RQuantLib. In particular the pricing of Barrier options. Unfortunately, only European. But we need American in order to price and simulate future scenarios for the so-called KO-Zertifikate (Knock-Out Warrants), which are quite popular among German retail traders. We show how to quickly adopt the code from QuantLib testsuite, compile it under Linux and integrate with R and web.
Continue reading "Integrating QuantLib with R and Web – Barrier Options Pricer"

Grow your money, Trader – the Anthem of letYourMoneyGrow.com

As the risk-free rate is so upset,
Let your money grow
Stock mark’t is tough and turbulent
Let your money grow
So God sayeth “model, Trader,
Your risks by every trade,
Estimate risk-reward and
Let your money grow

Continue reading "Grow your money, Trader – the Anthem of letYourMoneyGrow.com"

My Fund Somewhat better than DUCKS is 1 year old: a festive but fair review

My wikifolio ("Somewhat better than DUCKS", ISIN: DE000LS9HDK3) is investable from 28.10.2016. It surely beats the DAX (main German stock index) both on absolute and risk-adjusted performance. Though I am very proud of my performance, I provide a closer look at it and show that sometimes I had just luck and sometimes I could have done better. I always preach for the rigorous and cold-blooded performance analysis and the best sermon is to demonstrate it by the example of myself.

Continue reading "My Fund Somewhat better than DUCKS is 1 year old: a festive but fair review"

Calling an R-script from PHP: pitfall with loading R-packages

We continue developing letYourMoneyGrow.com and soon will make the first tool from the promised portfolio optimization toolset publicly available. And so far a small technical report. We implement the core business logic in R and wrap-up it with PHP. Calling Rscript from PHP via exec("Rscript ...")  seems to be easy ... as far as you don't use any libraries. And if you do, you will get an error message like Error in library(RMySQL) : there is no package called 'RMySQL'. Fortunately, there is a solution. However, note that a loaded package may depend on other packages. For instance, RMySQL depends on DBI. Thus you should explicitly resolve this dependency in your R-code like this:

library(DBI, lib.loc = c("/home/<yourUsername>/R/x86_64-pc-linux-gnu-library/<yourRVersion>", "/usr/local/lib/R/site-library", "/usr/lib/R/library"))
library(RMySQL, lib.loc = c("/home/<yourUsername>/R/x86_64-pc-linux-gnu-library/<yourRVersion>", "/usr/local/lib/R/site-library", "/usr/lib/R/library"))

We did it, letYourMoneyGrow is online!

Hurrah! we have completely rebuilt letYourMoneyGrow.com and starting it from scratch. At first as a high-quality investment and financial blog. Then are going to add a powerful and easy-to-use toolset for portfolio analytics and optimisation. Stay with us!

P.S.
Though it is just a coincidence, but the start date is 1st of September, which is known as Knowledge Day. An important part of our mission is to provide the retail investors with knowledge (rather than hope for easy and quick money). All you need is willingness to learn! Some numeracy is also advantageous, however, if you are not particularly good in math, don't worry. We will prepare a mini-crash course for you and the rest will be done by our portfolio toolset.