Please advise how can this be resolved. Thanks.
if (State == State.SetDefaults)
{
EntryHandling = EntryHandling.UniqueEntries;
StopTargetHandling = StopTargetHandling.ByStrategyPosition;
}
if (Position.MarketPosition == MarketPosition.Flat {
SetStopLoss("orderLong1", CalculationMode.Currency, 500, false);
SetStopLoss("orderLong2", CalculationMode.Currency, 600, false);
SetStopLoss("orderLong3", CalculationMode.Currency, 700, false);
SetProfitTarget("orderLong1", CalculationMode.Currency, 250);
SetProfitTarget("orderLong2", CalculationMode.Currency, 450);
SetProfitTarget("orderLong3", CalculationMode.Currency, 650);
EnterLong(1000, "orderLong1");
EnterLong(1000, "orderLong2");
EnterLong(1000, "orderLong3");
}

Comment