In my strategy to set the stop, I use the SetStopLoss() method. In the refernce book there is a suggestion, to reset the stop loss price, when the strategy is flat, otherwise the last stop price value will be used to generate the stop loss order on the next open position.
I thought, that I wright to the OnPositionUpdate:
if(position.MarketPosition == MarketPosition.Flat)
// resetting the stop loss
But how can I do the reset?
And is this method the best place to do it?
Thank you for advance
Kind regards
Akos
Comment