Dot Product Using Python To Trade