Help Center
Our products knowledge base for customers
S/L, T/P and Reduce only orders
S/L, T/P and Reduce only orders
This article describes how the platform handles orders that reduce or close a position: stop loss and take profit orders of a position (S/L, T/P), orders with the Reduce only flag, and orders closing a position. All such orders are displayed in the Orders tab of the account. If the system rejects or cancels an order, the reason is shown in the Comment field of the order - the messages are listed at the end of the article.
S/L and T/P orders of a position
An order is an S/L or T/P order of a position if its type is not Market and its Source is Stop loss or Take profit. Orders from mobile apps (Source - Mobile) with the Close trade ID filled in are also S/L and T/P orders: an order of a stop type is S/L, an order of a limit type is T/P.
Only the following order types are allowed for each kind:
| Name | Description |
|---|---|
| S/L | Stop, Stop-limit, Trailing stop |
| T/P | Limit, Market if touched, Limit if touched |
An order of another type is rejected.
When an S/L or T/P order is placed, the system:
- binds it to the position specified in
Close trade ID, or, if the field is empty, to the netting position of the instrument; - sets the order amount equal to the position amount, regardless of the amount specified in the order;
- enables the
Reduce onlyflag for the order.
The order is rejected if there is no position or the order side matches the position side.
A position can have one S/L order and one T/P order. A new S/L order replaces the previous S/L order, a new T/P order replaces the previous T/P order: the previous order is canceled, the order of the other kind is not affected. When an S/L or T/P order is modified with a new price, its amount is again set equal to the position amount.
S/L and T/P orders follow the position right after each execution:
- when the position is partially closed, the amount of the orders decreases to the remaining position;
- while an order increasing the position is filled in parts, the amount of the orders grows with the position;
- when the position is closed or reversed, the orders are canceled;
- when one of the orders is executed, the other one is canceled, as the position is closed.
If the position amount exceeds the maximum order amount set for the instrument, the amount of the S/L and T/P orders does not change.
When an S/L or T/P order is triggered, the system checks it against the position once again: an order that has already been replaced by another one, or an order whose position no longer exists, is canceled; if the position has become smaller than the order amount, the order is executed for the remaining position.
S/L and T/P orders do not require margin.
S/L and T/P in a trading order
S/L and T/P levels can be specified in the trading order itself. Such levels are set on the position only after the order is fully filled:
- if the position already has
S/LandT/Porders, they are modified to the new price and the position amount; - if only one of the levels is specified in the order, the order of the other kind is canceled for the position;
- if the
S/LorT/Pprice is on the other side of the trade price at the moment of execution, theS/LandT/Porders are created with theRejectedstatus.
An order without S/L and T/P levels that has increased the netting position cancels the S/L and T/P orders of the position once it is fully filled. While it is filled in parts, the amount of the S/L and T/P orders grows with the position. An order that has reduced the position does not cancel the S/L and T/P orders - their amount decreases to the remaining position.
Placing an order does not affect the S/L and T/P orders of the position: they change only when the order is executed.
Reduce only orders
An order with the Reduce only flag can only reduce a position. It is checked against the position specified in Close trade ID, or, if the field is empty, against the netting position of the instrument. The order is rejected if:
Use hedge positionis enabled for the order;- the instrument has no netting position (e.g., only hedge positions are open on the account);
- the order side matches the position side;
- the order amount together with the other
Reduce onlyorders of the same side and the same kind exceeds the position.
The kind of an order is defined by its type:
| Name | Description |
|---|---|
| Market | Market |
| Limit | Limit, Market if touched, Limit if touched |
| Stop | Stop, Stop-limit, Trailing stop |
Orders of different kinds are summed up separately: e.g., a limit and a stop order for the whole position amount can be placed at the same time. S/L and T/P orders are not included in the sum.
After each execution on the account, the system checks whether the Reduce only orders fit into the position. The check is also performed when the account is recalculated - after liquidation, manual trade adding and instrument expiration. The excess orders are canceled in full, starting from the last placed one, - as many orders as it takes for the rest to fit into the position. When the position is closed or reversed, the Reduce only orders that reduced it are canceled.
Orders with a trigger price (Stop, Stop-limit, Trailing stop, Market if touched, Limit if touched) are checked once again when triggered: if the order amount exceeds the position, the order is canceled. Limit orders do not go through this check.
Reduce only orders do not require margin.
On accounts with the Skip order margin check setting, these rules apply only partially - see the Account settings article for details.
Orders closing a position
An order with the Close trade ID filled in closes the specified position. Such an order is rejected if there is no position or the order side matches the position side. If the Reduce only flag is enabled for the order, its amount cannot exceed the position.
Orders that the client places with the buttons for closing and reducing a position in the trading terminal, Unity Trader and Unity Investments (in Unity Trader, also for closing a single trade) are always placed with the Close trade ID filled in and the Reduce only flag - in the Orders tab, their Reduce only value is Yes. If the position has decreased by the time the order is placed and the order amount exceeds it, the order is rejected with the no sufficient position for reduce only order message and does not reverse the position.
An order that has not started to fill yet is canceled when the position is closed or reversed.
Rejection and cancellation messages
The messages are shown in English in the Comment field of the order:
| Name | Description |
|---|---|
stop loss must be a stop order and take profit a limit order | An S/L or T/P order of a type that is not allowed is rejected. |
no position for close order | An order closing a position is rejected or canceled: there is no position. |
no position for reduce only order | A Reduce only order is rejected: there is no netting position. |
close order side must be opposite to the position | The order is rejected or canceled: its side matches the position side. |
no sufficient position for reduce only order | A Reduce only order is rejected, or canceled when triggered: its amount exceeds the position. |
a reduce only order cannot open a hedge position | A Reduce only order with a hedge position is rejected. |
cancel reduce only order | A Reduce only order is canceled: it does not fit into the position after the position decreased. |
put new sltp order | An S/L or T/P order is canceled: a new order of the same kind is placed. |
sltp order replaced | An S/L or T/P order is canceled when triggered: it has already been replaced by another one. |
sltp order replaced or its position closed | An S/L or T/P order is canceled: it has been replaced by another one or the position is closed. |
no position for sltp | S/L and T/P orders are canceled: the position is closed. |
bad position sign | S/L and T/P orders are canceled: the position is reversed. |
execute order without stop loss | An S/L order is canceled: an order with only T/P specified is executed. |
execute order without take profit | A T/P order is canceled: an order with only S/L specified is executed. |
execute order without stop loss and take profit | S/L and T/P orders are canceled: an order without them that increased the position is executed. |
amount reduced to the position: <amount> | The order amount is reduced to the remaining position when the order is triggered. |