Fix docstring for TradingAlgorithm

From the commit message: "Fix the example given in the class docstring as the original didn't work on REPL."

A little fix done while going through the code.