Right now, my test strategy I'm working on starts-out without a stop loss; once I'm in a position and the position has profit, I call SetStopLoss(CalculationMode.Price, price) to introduce a stop loss at a specific price (based on an indicator or bar high/low or similar). Right now I'm using the stoploss to bank profits and closing the position at market with a loss if I get an opposing signal.
The problem I'm having is that subsequent market positions are using the prior market position's stop price; even though I want each new market position to start without one (for now, at least).
I can't find any methods that enable me to do this, and SetStopLoss(CalculationMode.Price, double.NaN) and a few other things I've tried don't seem to work.
How can I clear a StopLossValue so that a new position starts without one?
Comment