Artificial Intelligence, Sentiment Analysis, Finance, Stock Market, Python.
self.buycomm = order.executed.comm else: # Sell self.log( 'SELL EXECUTED, Price: %.2f, Cost: %.2f, Comm %.2f' % (order.executed.price, order.executed.value, order.executed.comm) ) self.bar_executed = len(self) elif order.status in [order.Canceled, order.Margin, order.Rejected]: self.log('Order