I want to test some stock trading strategies and I\'m trying to figure out how easily I can create calculated fields with SQL (mySQL) rather than MongoDB with Python like I