Artificial Intelligence, Sentiment Analysis, Finance, Stock Market, Python.
Canceled/Margin/Rejected') self.order = None Similarly, override the notify_trade function to print out information related to each closed trade: def notify_trade(self, trade): if not trade.isclosed: return self.log('OPERATION PROFIT, GROSS %.2f, NET %.2f' % (trade.pnl, trade.pnlcomm)) Finally, I