DOC: Fix docstring for TradingAlgorithm

Fix the example given in the class docstring as the original didn't work
on REPL.
DOC: Fix docstring for TradingAlgorithm

Get the amount from the algorithm object instead of referring to
a (undefined) global.
Merge fixes to docstring for TradingAlgorithm.