I'm using the following code:
string signalName = "Short entry zone " + i; // We enter the position Order myOrder = EnterShortStopLimit(1, entryPrice, stopPrice, signalName); // Set take profit SetProfitTarget(signalName, CalculationMode.Price, takeProfitPrice); // Set stop loss //SetStopLoss(signalName, CalculationMode.Price, stopPrice, true);
Note: stopPrice, entryPrice and takeProfitPrice are variables previously calculated

Comment