Machine Learning For Algorithmic Trading Code