Take Profit and Stop Loss for a limit buy
Take Profit (TP) sells a token when the price has risen to your level and locks in the profit. Stop Loss (SL) sells when the price falls and limits the loss. In Pepegun you attach them to a limit buy: the bot buys, then sells by your rules on its own.
How it works
TP and SL (what they are) are two sells tied to a limit buy:
- You create a limit buy order and turn on TP, SL or both.
- While the buy has not filled, TP and SL wait. They are shown in the buy's card as the «🎯 TP» and «🛡 SL» lines.
- The buy fills: TP and SL switch on by themselves.
- Whichever price is reached first fires. The other one is then cancelled.
TP and SL exist only on a buy. A limit sell has none: there is nothing left to sell.
For copy trading, TP and SL are set in the copy order window, see Copy trade. Snipes have an auto-sell instead, see Snipes.
How to turn them on
Open a limit buy window as described in Limit orders. At the bottom of the window there are Take Profit and Stop Loss buttons. Tap one to turn it on: ☑️ changes to ✅. Its settings appear below it.
1. Price
Tap 📊 Price under TP or SL. The ways are the same as for the main order: in GRAM, in %, in $ and in FDV.
- Percent is the easiest. For TP it is «how many % the price must rise», for SL «how many % it must fall» (1 to 99). The percent is counted from the price at which the buy filled, not from today's price.
- Quick buttons: TP +10%, +25%, +50%, +75%, +150%, +200%; SL −10%, −25%, −50%, −75%.
- If you set an exact price (in GRAM, $ or FDV), TP must be above the buy price and SL below it. Otherwise the bot does not create the order and tells you what is wrong.
2. How much to sell
Tap 💵 Percent: what share of the tokens in the wallet to sell, 1 to 100%. Default 50%. The share is taken from the wallet's balance of this token at the moment TP or SL fires.
3. Slippage
Tap 🍌 Slippage under TP or SL: the slippage for this sell, 0.01 to 100%. Default 20%.
4. How TP fills
The button under TP switches the mode:
- ⚡ at market on touch (default). As soon as the chart price reaches the TP, the bot sells at market within the slippage. It may sell a little below the TP price.
- 🎯 no lower than the TP price. The sell goes no lower than the TP price (the pool fee comes out of the proceeds). On a short spike it may miss.
Stop Loss always sells at market within the slippage: in a drop, getting out in time matters more.
5. Retries
↗️ Retries (if failed) for TP and SL work like the main order's: how many times to retry the sell if the DEX returned it because the price moved. 0 to 10, default 2.
6. Create the order
Tap 🚀 Create order. The confirmation says «🎯 Take Profit + Stop Loss activate after the buy fills».
Managing TP and SL
While the buy is waiting, TP and SL are shown in the buy's card: 📊 Limit orders → the order. To change their price or share, tap ✏️ Edit on the buy.
Once the buy fills, TP and SL appear in the 📊 Limit orders list as separate rows «🎯 TP …» and «🛡 SL …». In the card of such a row you can:
- switch the TP fill mode: the Fill ⚡ at market on touch (🔄) button;
- change the number of retries: Retries on return ♻️ 2 (✏️);
- delete it: 🛑 Delete.
Good to know
- TP and SL are created on every wallet the buy is created on.
- The order's expiry applies to its TP and SL too.
- Deleting the buy deletes its TP and SL as well.
- TP and SL sell a share of all tokens of this kind in the wallet, not only the ones this order bought.
- Each sell and each retry costs gas.
- For wallets connected via TonConnect, TP and SL are not available, just like limit orders.
Troubleshooting
«TP/SL removed: they sell what a LIMIT BUY bought and exist only on a buy» You switched the order to sell. Switch back to ⬆️ Buy if you need TP and SL.
The bot says Take Profit must be above the buy price (or Stop Loss below it). Check the TP or SL price. The easiest way is to set them in percent.
The bot asks you to set the Take Profit or Stop Loss price or turn it off. You turned TP or SL on but did not set its price. Set it or turn the button off.
What's next
- Limit orders
- Copy trade: it has TP and SL too.