For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Whenever I try to close out a trade it either calls order.isbuy() or order.issell() based on the logic. Is there a way to identify in notify_order() that the call was for "close" and not "buy" or "sell"?
if order.status in [order.Completed]: if order.isbuy(): pass elif order.issell(): # Sell pass