and have the following for Stop Losses
//Manage Stop Loss(Initial Stop Loss)
SetStopLoss(780);
//Move Stop to Breakeven(LONG Side)
if (Position.MarketPosition == MarketPosition.Long)
{
if (Close[0] > Position.AvgPrice + 45 * TickSize)
SetStopLoss(CalculationMode.Price, Position.AvgPrice);
}
//Move Stop to Breakeven(Short Side)
if (Position.MarketPosition == MarketPosition.Short)
{
if (Close[0] < Position.AvgPrice - 45 * TickSize)
SetStopLoss(CalculationMode.Price, Position.AvgPrice);
}
The Initial Stop Loss seems to be working but the Break Even Stop does not
Once I am up 45 pips ($450 on 100,000 units) want to move my stop to breakeven
Should be straight forward but I dont see the problem with the above code?

Comment