This is a slightly modified version of the sample algo, where instead of buying when the stock goes up, you buy when the stock goes down, vice versa for selling. It bets the whole account in each trade, so no scaling in or scaling out. I've added commissions as well, to reduce the outrageous return.