I am getting error " cant be submitted.The OCO ID '94239842394" cannot be reused. Please use new OCO ID affectedOrder: BuytoCover 1 limit @"
i given SetprofitTarget and SetStoploss in Dataloaded.
SetProfitTarget("Long1", CalculationMode.Ticks,PT1);
SetProfitTarget("Long2", CalculationMode.Ticks,PT2);
SetStopLoss("", CalculationMode.Ticks, StopLoss, true);
And Dynamic SL i given in onbar update.
if (Position.MarketPosition == MarketPosition.Long)
{
if (Close[0] >= Position.AveragePrice + 10 * TickSize)
{
SetStopLoss(CalculationMode.Price, Position.AveragePrice);
}
}
Comment