Take profit and stop loss
Close a position automatically when price reaches a target or a stop. How a TP or SL fires, which price it watches, how it attaches to an entry or a position, and when it cancels.
On this page
A take profit (TP) closes your position when price moves your way to a level you set; a stop loss (SL) closes it when price moves against you. You set the trigger price, the price it watches and the exit type, but no size: it closes the whole position open when it fires. TP and SL work on perps, one of each per position (market and margin mode).
How it fires
ATLAS watches the trigger source, so you needn't be online. At the trigger it sends an ordinary reduce-only exit order, filled at book prices, not the trigger. Until it fires, only you can see it.
| Your position | TP fires when the source is | SL fires when the source is | Exit |
|---|---|---|---|
| Long | at or above the TP trigger | at or below the SL trigger | Sell, reduce-only |
| Short | at or below the TP trigger | at or above the SL trigger | Buy, reduce-only |
Trigger price
Each side can watch a different source:
| Source | What it follows | On a single thin trade |
|---|---|---|
| Mark (front-end default) | The mark price, used for margin and PnL | Barely moves |
| Index | The index price from other venues | Ignores the ATLAS book |
| Last | The last trade on the ATLAS book | Can fire it |
Market or limit exit
| Exit | What it does | Time in force |
|---|---|---|
| Market | Takes liquidity up to the protective cap | GTC (leftover rests at the cap) or IOC (leftover cancelled) |
| Limit | Fills at your limit or better, otherwise rests | Always GTC |
FOK isn't offered. If price gaps through a limit exit, it rests unfilled, leaving you in the position with the other side active.
Attaching a TP and SL
Attach a TP, an SL or both to an entry order or to a position you hold (front ends call this Auto Close). On an entry they activate at its first fill, full or partial, and can fire before the rest fills. If you replace the entry, they follow it. With both set (an OCO), the other side is cancelled when the position is flat, not when one side fires.
An entry can be post-only, as a limit order can. An isolated entry that creates the market's isolated pool opens at the market's maximum leverage unless it names an opening margin: name one to open at a lower leverage.
Changing and cancelling
You can update a waiting side or add a missing one; a fired side can only be cancelled, with its exit. A second TP/SL on the same market and margin mode is rejected whole, entry included. Cancelling one side leaves the other; cancelling both leaves a working entry.
When ATLAS cancels a TP or SL
| Event | Waiting sides | A fired exit |
|---|---|---|
| Position goes flat or flips | Cancelled | Keeps working. Cancel it yourself, or it can open a position the other way |
| A newer reduce-only order, such as a close | Stay | Shrunk or cancelled to make room |
| Mass cancel or dead-man switch | Active ones stay; pending ones go with their entry | Cancelled |
| Position liquidated | Cancelled | Cancelled |
| Market closed to new orders | Cancelled instead of firing; a new or changed TP/SL there is refused | Keeps working |
Who places your exit
ATLAS's TP/SL service sends the exit with an instruction key you bind to it with your owner key, once per account and sub-account: Reduce Only for a position you hold, Full to attach one to an entry.