In the OnOrderUpdate() function I’m setting my Stop Loss and Take Profit, however while the SetProfitTarget() gets set properly, it doesn’t seem like the SetStopLoss() is being set. I am verifying the value is correct in the Output, however when the SL is hit it’s not being triggered. When I run the Strategy Analyzer if the PT isn’t hit during the day the order just exits on session close instead. The code is below, and I even make sure to reset the SetStopLoss() function right before the EnterLong() call earlier in the code.

