I have a strategy which has a DailyStopLossLimit property. This strategy does nothing else except monitor my PL and compares to the DailyStopLoss. if my daily loss exceeds this level it closes all positions and attempts to cancel any new orders entered.
However the strategy doesn't control new order entry. I do that manually. When the strategy calls CancelOrder on any new orders that i've manually entered nothing happens.
Can strategies cancel orders that they didn't originally submit? If not is there a work-around?
I've tried CancelAllOrders(Intrsument) which does indeed cancel any order but that also kills the strategy and i dont want that to happen.
thanks
Comment