CloseAtLimit

CloseAtLimit

The CloseAtLimit methods allow for closing a position using a limit order.

public void CloseAtLimit(Position position, decimal priceLimit, decimal volume, string signalType)

The method does not have a return value and accepts the following parameters:

1. position – the position that needs to be closed;

2. priceLimit – the price for the closing order;

3. volume – the volume being closed;

4. signalType – the type of signal for closure;

1. The logic of opening positions.

2. Close the position using the CloseAtLimit method if an exit signal is received.

3. Close the position if the configured session time has expired.

public void CloseAtLimit(Position position, decimal priceLimit, decimal volume)

The method performs similar actions. The only difference is that it does not take a signal type for closure.

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