結果 : how to write a trading algorithm in python