source code for the algorithmic trader