Tag Archives: RCpp

How to build Beowulf cluster aks HPC for Open MPI C++ apps like HFT with R with RCPP RInside package on Debian Linux #rstats #linux

How to build Beowulf cluster aks HPC for Open MPI C++ apps like HFT with R with RCPP RInside  package on Debian Linux #rstats #linux

Install Debian Etch from: and follow first CD install instructions:

http://www.debian.org/CD/http-ftp/

Install Debian Virtual Machines in Virtual Box as usual

http://www.wired.com/geekdad/2012/02/debian-linux-on-oracle-virtualbox/

Go with all default options.  You can always clone  a second  client VM to create a slave.

Set up hostname and configure network via: (choose the static address  not DHCP)

http://www.debian-administration.org/articles/254

Note that you could loose network connectivity soo add an additional Network Adapter with Bridged Adapter for each VM. within the Virtual Box setting. so see next step

Ensure each VM has network adapter setting to Virtual Box Host Only

http://christophermaier.name/blog/2010/09/01/host-only-networking-with-virtualbox

Create NFS for both virtual machines as server and client:

http://www.howtoforge.com/nfs-server-and-client-debian-etch

Note: When  editing exports on the server with:

/home           192.168.0.101(rw,sync,no_root_squash)

/var/nfs        192.168.0.101(rw,sync)

 

Note that 101 is the client!. ALso, I have when I try to auto mount during boot on the client, it would hang. I just created a shell script to do the mounts manually when you boot.  I just called this /etc/mountmaster.sh

 

If you need to add users do:

http://www.debian-administration.org/articles/2

You should be able to proceed with the following set up of your Beowulf cluster:

http://www.debian-administration.org/articles/2

To understand nad configure ssh connections with no passowrd, use:

SSH your Debian servers without password

This could be useful http://wiki.debian.org/SSH but note it uses RSA not DSA

If confused, use this next one but remember the ssh server is the Open MPI slave while client is the Open MPI since it logins into the Open MPI slave.

http://www.howtoforge.com/set-up-ssh-with-public-key-authentication-debian-etch

 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Youtube video demo of C++ calling RInside and RCpp with Performance Analytics R package in Ubuntu Linux #linux #cpp #rstats

Youtube video demo of C++ calling RInside and RCpp with Performance Analytics R package in Ubuntu Linux #linux #cpp #rstats

Join my newsletter to get more gold nuggets like this

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Coding is fun? I am about to push the limits of my RCpp and RInside with C++ and R in this new HFT system #hft #rstats

Coding is fun? I am about to push the limits of my RCpp and RInside with C++ and R in this new HFT system #hft #rstats

Let’s see what happens. I will post a video if there a successful results.

See when this happens when I make an announcement on this

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Youtube video on verifed C++ can call R with RCpp RInside and other R packages like quantmod

Youtube video on verifed C++ can call R with RCpp RInside and other R packages like quantmod

http://quantlabs.net/membership.htm

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

For HFT: Just like Matlab or Coder toolbox,, embedding Octave M script code C++ is ugly, stick with R, RCpp, RInside

For HFT: Just like Matlab or Coder toolbox,, embedding Octave M script code  C++ is ugly, stick with R, RCpp, RInside

I tried investigating this as a hopeful extra bonus. This can be done but be aware that it is ugly as if you did it with Matlab. With the extra expense of Matlab core, the .NET or JABuilder toolboxes, it would be a real pain and expensive to do. The added costs of $6k for the Matlab Coder might not be worth it!! As GCC or G++ with R is all free! Yipeee! But too bad about Octave as it just does not have athe advancement of a community like R. It would have been nice to spend time on this but not worth it at this point.

http://octave.sourceforge.net/doxygen/html/

Learn more what I do with this potential HFT platform by joining my free newsletter. 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Youtube video on how to install RCpp RInside on Ubuntu Linux with Open MPI for your C ++ HFT platform with R quant analytics

Youtube video on how to install RCpp RInside on Ubuntu Linux with Open MPI for your C ++ HFT platform with R quant analytics

Some bonus links:

http://quantlabs.net/r-blog/2012/10/how-to-install-r-with-rcpp-rinside-for-c-hft-with-multithreading-capabilities-for-parallelizing-with-open-mpi-in-ubuntu-linux/

http://quantlabs.net/r-blog/2012/10/how-to-upgrade-to-the-latest-r-package-in-your-ubuntu-linux-environment/

Wow. This easily the most important demo yet for my upcoming HFT platform!

Join my free frequent newsletter to get further updates of this. 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

For HFT: Most advanced source examples with Python, C++, Java, Octave/Matlab, QuantLib, and R with this RCpp package

This site is easily the most advanced source examples I have seen for HFT with Python, C++, Java, and R with this RCpp package

http://dirk.eddelbuettel.com/code/rcpp.html

I need to say as a community of people thanking Dirk for maitaining this amazing set of code. It is quite amazing as this site also includes R integration into. I am still stunned at the HUGE of amount of examples here.

This does not include the Quantian Linux distribution or Linux packages Dirk uses. Pretty heavy stuff!

Learn what I plan to do with this for Premium Members. Join my free newsletter to find out!

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Another HFT Secret – how to use Linux with C++ vs. Java with R, RJava, RCaller, RCPP, RInsid

Hi there,

I’ve discovered what I believe to be easily the best development stack for high frequency trading (HFT):

http://quantlabs.net/r-blog/2012/09/fantastic-youtube-video-from-google-tech-with-demo-of-r-c-rcpp-rinside-and-rprotofbuf/

Calling R from C++ is definitely the best tactic as it takes just half the time as using Java for the same thing. (And as an aside, I’d like to thank everyone developing these highly important R packages. They know who they are.)

http://workshop.mkobos.com/2011/comparison-of-application-of-rcpp-and-rjava-in-r/

http://stackoverflow.com/questions/10937374/benchmarking-of-rcpp-or-rcaller-of-c-or-java-calling-r-script

Also, I can confirm that using R with RCPP is the best way forward on trading platform development. You can only do this in Linux as RCPP only supports GCC. There’s no option to use Visual C++ with Visual Studio, unfortunately.

The next step (debugging) promises to be very time-consuming, though. And let me be as straight as possible, I will NOT be releasing the code to the public. This is rapidly becoming a very proprietary stage of QuantLabs.net development.

This means that only my Premium members will get access through my unrecorded live webinar and live demos. Unrecorded, yes! There will be no electronic track record as I’m not redistributing this code. I’m only demo-ing it to certain people including my membership.

This particular platform will be worth a lot of money soon, so “the list” need only include those who can afford it.

If this sounds like you, I suggest becoming a member now before you’re priced out.

–> Sign up link here <–

The rate will be rising soon, so lock in the current low rate before it rises.

Good trading,

Bryan Downing

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

My view on the best and fastest HFT potential for quant using Linux, C++, Java, R, RInside, RCpp, RJava, RCaller,

My view on the best and fastest HFT potential for quant using Linux, C++, Java, R, RInside, RCpp, RJava, RCaller,

Please read this if you need to understand where I am coming from for the future.

Interested? Join now before this membership will be out of reach for most.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!