@tatyanablog: the trading function