Hot answers tagged r
Looking at your code, you seem to be mixing the risk minimization formulation of the mean-variance problem with the risk aversion formulation. Both formulations include the "budget" constraint, that the sum of the weights equal 1, and can require that each of the weights be greater than zero, the "long-only" inequality constraints. In the risk minimization ...
You'll want the ibrokers package, its very good and built on the c++ api. Also check out quantmod, performanceanalytics, quantstrat, and highfrequency package.
My favorite tool is Sornette's own Finanical Crisis Observatory: http://tasmania.ethz.ch/pubfco/fco.html If you are interested, I have developed my own tool in Java and JavaCL which can be found here: https://thebubbleindex.codeplex.com/
Only top voted, non community-wiki answers of a minimum length are eligible