Building and Validating Simple Stock Trading Algorithms Using Python