
public Position SellAtLimit(decimal volume, decimal priceLimit)
The method takes two parameters – volume and price for the opening order. It creates and returns a new position with the state PositionStateType.Opening. In the code, the usage of the method looks like this:

The closing price of the last candle is passed as the price to the method.
public Position SellAtLimit(decimal volume, decimal priceLimit, string signalType)
This overload of the method takes a third parameter in the form of a string indicating the signal for opening a short position.

1. Create a variable of type string and initialize it with an appropriate value depending on the current market time.
2. Open a position using the SellAtLimit method, passing the volume, price, and name of the signal to the method.
3. Access the SignalTypeOpen field on the position instance to get its value and log an informational message about which signal was activated.
As a result, we can see the names of the signals in the position tables in the software interface.

If you have any difficulties or questions, please write to the support chat. Link