Are you trying this in OnOrderUpdate? I usually do my stop orders and targets in OnExecutionUpdate. I think after the order is filled it goes back to being null, but that could be how I have it set up, it’s been a while since I’ve looked at my strategy code.