I am new to this forum and have taken a keen interest in writing trading programs. I have some Python background, a little C# but no C++.
The example below was provided in a book on HFT and I would love to see how the results look. I was hoping that I would just compile it and away you go!
Ahhh..that didn't happen. To start with the author listed this as a function, so I converted it to a main program. Still having issues with my path and where to see the output.
Please help...this should be very interesting for all.
Here it is..
/*
PLEASE READ THIS IMPORTANT DISCLAIMER
This code is distributed AS IS, and is
not subject to any warranty, performance
guarantees, etc.
It is intended strictly for educational
purposes to illustrate the concepts
presented in Irene Aldridge's book:
"High-Frequency Trading: A Practical Guide
to Algorithmic Strategies and Trading Systems".
Any commercial distribution of the code is
strictly prohibited.
*/
Ok, I would love to read through this and help you, but to make it easier to read for the community, please put all code in code tags, just surround the word "code" with []'s to start a code block, then surround "/code" with []'s to end a code block.
EDIT::
Formatting the code would be extremely helpful to, it would get you answers much faster!
Can you additionally post some of the errors you're getting at compile time?
The path issue likely stems from your input file. You said you have some programming experience, so I figure you've already double checked this, but make sure that "AvellanedaStoikov2008_WFC_InputData.txt" and your cpp file are in the same directory.