I try to build a Strategy with the Strategy Builder tool
I got my entries my exits and my trailing stop .
But i don t get my breakeven to work .
I tried this logoc and maybe its totally the wrong though
// Condition set 3
if (Position.MarketPosition == MarketPosition.Long
&& Position.GetProfitLoss(Close[0], PerformanceUnit.Points) == 30)
{
EnterShortStop(DefaultQuantity, 30, "");
}
// Condition set 4
if (Position.MarketPosition == MarketPosition.Short
&& Position.GetProfitLoss(Close[0], PerformanceUnit.Points) == 30)
{
EnterLongStop(DefaultQuantity, 30, "");
}
}
Comment