How to Set Take Profit and Stop Loss
You can set a take-profit (TP) or stop-loss (SL) on a Perpetual Contract in two places: when you place the opening order, or on an open position. TP/SL settings close your position automatically when the market reaches the trigger price you set.
Before you start
- Take-profit (TP): closes a position automatically at a profit target.
- Stop-loss (SL): closes a position automatically to limit a loss.
- Trigger price: the market price that activates the TP or SL.
For concepts, see the TP/SL Order Introduction. For common questions, see the TP/SL Orders FAQ.
The three TP/SL methods
| Method | When you set it | How much it closes | Close method |
| Set TP/SL when placing an order | With the opening order | The full position formed by the order | Market (default) |
| Partial TP/SL on a position | On an open position | A specified quantity | Market or limit |
| Position TP/SL on a position | On an open position | 100% of the position | Market only |
Method 1: Set TP/SL when placing an order
- Open the Perpetual Contract trading page.
- Select the contract, for example the XAUUSD Perpetual Contract.
- Choose the direction, for example Open Long or Open Short.
- Select the order type and enter the price, quantity and other details.
- In the order panel, find the “Take Profit / Stop Loss” section.
- Turn on the take-profit or stop-loss setting.
- Enter the take-profit trigger price or stop-loss trigger price.
- Check the order details and the TP/SL settings.
- Tap the order button to submit.
After the opening order fills, the TP/SL takes effect.
Example: XAUUSD is at 6,000 USD. You buy to open a long position with a Take-Profit Price of 6,200 USD and a Stop-Loss Price of 5,850 USD. If the market rises to 6,200 USD, the take-profit triggers and the system submits a market Sell to Close Long order. If the market falls to 5,850 USD, the stop-loss triggers and the system submits a market Sell to Close Long order.
Rules for TP/SL set at order placement:
- The TP/SL takes effect only after the opening order fills.
- If the opening order does not fill, its TP/SL does not take effect.
- If the opening order partly fills, the TP/SL usually applies to the position formed by the filled portion.
- The close order defaults to a market order.
- After triggering, the system closes the position as quickly as possible at the best available market price.
- A market close does not guarantee a fill at the trigger price.
Method 2: Set a partial TP/SL on an open position
Use Partial TP/SL to close part of a position at a trigger price.
- Open the Perpetual Contract trading page.
- In the “Current Positions” section, find the position you want to manage.
- Tap the “Take Profit / Stop Loss” entry for that position.
- Select “Partial TP/SL.”
- Choose take-profit, stop-loss, or both.
- Enter the trigger price.
- Enter the close quantity, or select a close percentage.
- Select the close method: market or limit.
- If you chose limit, enter the order price.
- Tap Confirm to save the partial TP/SL.
Market close: when the trigger is reached, the system closes the specified quantity as quickly as possible at the best available price. The fill price may differ from the trigger price.
Limit close: when the trigger is reached, the system submits a limit close order at your order price. Execution is not guaranteed. If the market moves quickly after the trigger, the order may not fill or may fill only partly.
Example: You hold a 1 XAU XAUUSD long position. You want to close 0.4 XAU when the price reaches 6,200 USD. Set a Take-Profit Trigger Price of 6,200 USD, a Close Quantity of 0.4 XAU, and a Close Method of Market or Limit. When the price reaches 6,200 USD, the system closes 0.4 XAU using the method you chose and keeps the remaining 0.6 XAU open.
Method 3: Set a position TP/SL on an open position
Use Position TP/SL to close the entire position when the trigger is reached.
- Open the Perpetual Contract trading page.
- In the “Current Positions” section, find the position.
- Tap the “Take Profit / Stop Loss” entry for that position.
- Select “Position TP/SL.”
- Enter the take-profit or stop-loss trigger price.
- Confirm that the trigger closes the entire position at market price.
- Tap Confirm to save.
Position TP/SL closes 100% of the position at market price. Partial quantities and limit closes are not supported.
Example: You hold a 1 XAU XAUUSD long position and want the whole position closed if the price reaches 5,850 USD. Set a Stop-Loss Trigger Price of 5,850 USD, a Close Method of Market, and a Close Percentage of 100%. When the price reaches 5,850 USD, the entire position closes at market price.
Price direction rules
Long position: a rising price means profit and a falling price means loss.
- Take-profit price: above the current or entry price.
- Stop-loss price: below the current or entry price.
- Example: a long opened at 6,000 USD can use a take-profit at 6,200 USD and a stop-loss at 5,850 USD.
Short position: a falling price means profit and a rising price means loss.
- Take-profit price: below the current or entry price.
- Stop-loss price: above the current or entry price.
- Example: a short opened at 6,000 USD can use a take-profit at 5,800 USD and a stop-loss at 6,150 USD.
Validation rules the system checks
The trading screen checks your entries before it submits a TP/SL. If an entry fails a check, the screen shows a prompt and you must correct the entry.
Trigger price
- The trigger price cannot be blank. Prompt: “Please enter the take-profit trigger price” or “Please enter the stop-loss trigger price.”
- The trigger price must be greater than 0. Prompt: “Please enter a valid trigger price.”
- The trigger price must match the contract’s allowed price precision (for example, no more decimal places than the contract allows). Prompt: “Price precision does not meet the current contract rules.”
- A long take-profit must be above the current reference price, and a long stop-loss must be below it. A short take-profit must be below the current reference price, and a short stop-loss must be above it. A price on the wrong side may trigger immediately or fail to set.
Partial TP/SL close quantity
- The close quantity cannot be blank and must be greater than 0. Prompt: “Please enter the close quantity” or “Please enter a valid close quantity.”
- The close quantity cannot exceed the currently available close quantity. Prompt: “Close quantity cannot exceed the current available close quantity.”
- The close quantity must match the contract’s quantity precision. Prompt: “Quantity precision does not meet the current contract rules.”
Limit close order price
- If you select limit close, the order price cannot be blank and must be greater than 0. Prompt: “Please enter the order price” or “Please enter a valid order price.”
- The order price must match the contract’s price precision. Prompt: “Order price precision does not meet the current contract rules.”
- For a long, the close direction is Sell. For a short, the close direction is Buy. If the order price is too far from the market, the order may not fill after triggering. Prompt: “The order price may prevent the order from filling. Please review before submitting.”
Position TP/SL
- Position TP/SL always closes 100%, so you cannot change the close quantity or percentage.
- Position TP/SL supports only market close.
Other checks
- You cannot set TP/SL if the position does not exist. Prompt: “Current position does not exist. Unable to set TP/SL.”
- You may be unable to add or change TP/SL while the contract is suspended, under maintenance, or restricted. The source article does not give the exact prompt text.