I have two different orders: Short Trade and Test Trade. I'm using the next code:
if(...) {
SetProfitTarget("Short Trade", CalculationMode.Currency, profit_price1);
SetStopLoss("Short Trade" ,CalculationMode.Currency, stop_price1, false);
EnterShort(1, "Short Trade")
}
....
if(...) {
SetProfitTarget("Test Short", CalculationMode.Currency, profit_price2);
SetStopLoss("Test Short" ,CalculationMode.Currency, stop_price2, false);
EnterShort(1, "Test Short")
}
Why do stop and profit linked to Short trade have the contracts duplicated and also the new Stop and Profit for "Test Short" are duplicated?

Comment