А так нельзя?

var trStop = sec.LowPrices[i] + StopLoss;
StopPrice = Math.Min(trStop, StopPrice);
p.CloseAtStop(i + 1, StopPrice, Slippage, "SL");