A Machine Learning framework for an algorithmic trading system