Numerical Method Using Python To Trade