How to get tradeid of order in order_notify?
Bayne last edited by Bayne
lets say i create an order in next() and i append it to a list:
def next(self): if signal: self.order = self.buy(exectype=bt.Order.Market, tradeid=self.TradeID) orderlist.append(self.order) # or should i better append it in notify_order() after its accepted?
how can i call its tradeid in notify_order, after its accepted?
i want to avoid self.order.tradeid because i'm executing multiple orders and i want to identify which one was completed right now.
run-out last edited by