Fix docstring for TradingAlgorithm

Get the amount from the algorithm object instead of referring to
a (undefined) global.