
Hey there! I have a backtest script containing multiple strategies.
I managed the orders in a way that orders opened from the same strategy will have the same order reference.
Sometime when a strategy doesn't performance well. I would like to close all outstanding orders created by that strategy.
Instead of keep track of all trade ID and close 1 by 1, is there a way that I can close all orders with the same order reference?