Quote from ksmetana:
Hi, I am learning C++ since it is the fastest and most common language used in algorithmic trading.
Does anyone have a good resource in learning to code specifically for trading?
A lot of the tutorials I'm reading teach basic coding, but I am unsure how to tie it all into trading. How to retrieve data... send commands.
I get the basic premise.
Create logic, and when the environment meets your parameters, you send a command.
Are there books or anything that specifically teach to write trading code? How to use different APIs, etc?
Also, does anyone have a program written, maybe an unprofitable one or outdated one that they will let me look at, so I get an idea of how the structure should look exactly?
Thanks
You could download the C++ version of QuickFix and look at their examples. This is the "real deal" -- the type of programming that many brokerage firms, exchanges, and HFT's use (although not with the freeware QuickFix version of FIX). However, it's also true that the time commitment to become proficient at this is significant compared to other solutions such as Ninja or Tradelink.
Java is another one that's similar to C++ but a little easier (with no memory management), and also has many broker-supplied API's, not to mention FIX implementations (such as the free QuickFixJ).
I disagree with the posters who say you can't learn C++ as your first language. If you're already making some headway, there's no reason you can't continue. It's all just a matter of what you're looking to accomplish. Give a serious look at the alternatives and make your own decision.