Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Advice on c++ tutorials

  1. Nov 11, 2008 #1
    well i've been putting this off for a good decade, but I really need a crash course of sorts in C++.

    I'm weeks away from graduating with a theoretical physics Ph.D and I am proficient in matlab. I want to move into quantitive analytics which involves building computer models to help traders. A typical requirement is C++, so i want to pick enough up so that I could start a job say Jan 2nd (6 weeks from now) amd hit the ground running so to speak.

    Could anyone advise me on what a good starting point would be??

    I'm looking for online tutorials or books or any good advice!

  2. jcsd
  3. Nov 11, 2008 #2
    The short answer is that you can't realistically hope to learn a sufficient amount of C++ from scratch in that space of time. Quantitative finance often involves lots of rather sophisticated code (particularly if, as is often the case, that code is running on impressive hardware) and you really do need about a year or more of experience with the language to feel comfortable with that. (The typical period of time required for somebody new to the language to become comfortable with C++ is about a year.)

    Moreover, learning the base language isn't close to being enough, in my opinion. You'll also need a solid knowledge of several of the boost libraries, a good idea of how to export C++ code to xlls that the traders can use to price in Excel, and a corresponding familiarity with VBA. An acquaintance with QuantLib and the ability to cannibalize it for useful code wouldn't go amiss either.

    If you're interested in working as a coder in quant. fin. then, at an absolute minimum, you should be familiar with everything in Joshi's C++ Design Patterns and Derivatives Pricing. Of course, to understand the models in that you'll probably also need to be familiar with his other book The Concepts and Practice of Mathematical Finance, which is terribly written but often useful.
  4. Nov 11, 2008 #3
    Wow, so how are you supposed to get into this in the first place? I can't see that many physics PhD's having that kind of experience straight out of school. Surely there must be some kind of Junior roles to bring us up to scratch???
  5. Nov 11, 2008 #4
    You'd be surprised. Many, many Ph. D students know that they're going to graduate school with the sole intention of entering finance once they've finished. Hence, there's a ready pool of students who have been learning C++ on the side all the way through grad school.

    (By the way, I've never been convinced that a straight theory Ph. D. is all that good a candidate for quantitative finance. It's much, much more common to find that successful quants will have a background in experimental physics, applied mathematics, or statistics. When the chips are down, knowing quantum field theory and/or general relativity is utterly useless if you're not going to be a physicist; knowing how to speed up convergence for a Monte Carlo simulation, however, is pretty lucrative in any walk of life.)

    I don't want to rain on anyone's parade, but a solid knowledge of C++ is an essential requirement if you're going to be implementing models as a quant. There really is no way around that.

    Yup: they're called internships. :tongue:

    You may get lucky and find a permanent job like this. That said, I've never seen the job market in quant. fin. to be weaker than it is right now. Those firms that are hiring can afford to be very picky since there are far more applicants for far fewer places.

    I, for one, would hate to be trying to break into the field right now.
    Last edited: Nov 11, 2008
  6. Nov 12, 2008 #5
    Thanks for the reply shoehorn. Yes, I know its a bad time to get into the biz.

    I did have a 3 month internship last summer at a hedge fund, so have a small selling point on my resume. The fund has since bust however, and I used matlab the whole time there anyway.

    I agree with your statement regarding QFT and GR not being much good unless you are going to become a physicist. I know I have a lot of stats and coding to master.

    I'm hoping I have something to offer Houston as thats where I'm headed.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook