Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Take Profit & Stop Loss

DgenFren monitors token prices in real time and automatically sells your position when it hits your target profit or loss threshold.

How It Works

After every successful buy, DgenFren prompts you to set exit targets:

  1. Take Profit (TP) — The price increase that triggers an automatic sell
  2. Stop Loss (SL) — The price decrease that triggers an automatic sell

When the price crosses either threshold, the bot executes a sell and notifies you with the results.

Setting Targets Manually

After a buy, you’ll see:

Set Exit Targets?

Step 1: Choose Take Profit

Select from presets or enter a custom percentage:

[+50%] [+100%] [+200%] [+500%]
[Custom TP]

Custom TP: Tap the button, then type any positive number (e.g., 150 for +150%).

Step 2: Choose Stop Loss

Select from presets, set a trailing stop, or skip:

[🛑 -15%] [🛑 -25%] [🛑 -35%] [🛑 -50%]
[Custom SL] [No Stop Loss]
[🔄 Trailing Mode]

Step 3: Confirm

Review your targets and confirm. The bot begins monitoring the price immediately.

[Screenshot: TP/SL confirmation message]

Auto TP/SL

Tired of setting targets manually after every buy? Enable Auto TP/SL:

/settings → Auto TP/SL → Toggle ON

Configure your default percentages:

  • TP: Default +50% (adjustable from +5% to +10,000%)
  • SL: Default -25% (adjustable from -5% to -95%)
  • Trailing: Toggle trailing stop loss on/off

With Auto TP/SL enabled, every buy across all trading paths (auto-buy, alerts, custom, DM) automatically creates exit orders — no prompt, no interaction needed.

You’ll see a confirmation:

✅ Auto TP/SL Set!
📍 $SYMBOL | 🎯 TP: +50% | 🛑 SL: -25%
Manage with /orders

Trailing Stop Loss

A trailing stop loss follows the price upward and only triggers when the price drops a set percentage from its peak (highest price since your buy).

Example: Entry at $1.00, trailing SL at -10%

Price MovementHigh Water MarkTrigger PriceTriggered?
$1.00 → $1.50$1.50$1.35No
$1.50 → $2.00$2.00$1.80No
$2.00 → $1.85$2.00$1.80No
$1.85 → $1.75$2.00$1.80Yes — sold at $1.75

The high water mark only moves up, never down. This lets you ride winners while protecting against sharp reversals.

Setting a Trailing Stop

When choosing your stop loss, tap Trailing Mode:

[🔄 -10%] [🔄 -15%] [🔄 -25%] [🔄 -50%]
[Custom TSL] [No Stop Loss]
[🛑 Fixed Mode]

You can toggle between fixed and trailing modes at any time.

Managing Orders

View all active TP/SL orders:

/orders

[Screenshot: /orders list]

Each order shows:

  • Token symbol (e.g., $PEPE)
  • Chain
  • Entry price and current price
  • Current P&L percentage
  • Target details (TP and SL percentages)
  • For trailing SL: peak price and current trigger level

Editing Orders

Tap Edit on any order to modify its targets:

  1. Change TP — Pick a new take profit percentage
  2. Change SL — Pick a new stop loss (fixed or trailing)
  3. Save — Updates take effect immediately

Your entry price is preserved when editing. Targets reset to untriggered state.

Cancelling Orders

Tap Cancel on an individual order to remove it.

Orders are also automatically cancelled when you manually sell the token from your portfolio.

Trigger Notifications

When a target triggers, you receive a detailed notification:

🎯 Take Profit Executed!

📍 Token: $SYMBOL
⛓️ Chain: base

💰 Entry: $0.0000010000
💵 Exit: $0.0000020000
📈 P&L: +100.00%

💰 Received: 0.0500 ETH
💎 Profit: +0.0250 ETH (~+$75.00)

🎯 Trigger: +100%
📦 Sold: 100% of position

🔗 View Transaction

For trailing stop losses, the notification includes the peak price reached.

How Price Monitoring Works

DgenFren uses Birdeye WebSocket feeds for real-time price data across Solana, Ethereum, Base, and Arbitrum. Prices update every few seconds.

When a trigger condition is met:

  1. The bot locks the order to prevent double-execution
  2. Executes the sell (with 20% slippage for safety)
  3. On success: marks the target as triggered and notifies you
  4. On failure: retries silently on the next price update, sends a reminder after 5 minutes

Duplicate Prevention

If you set new TP/SL targets for a token where you already have an active order, the old order is automatically replaced. You’ll never have conflicting orders on the same token.

Tips

  • Trailing stops are ideal for momentum plays — they let profits run while protecting the downside
  • Start with conservative targets (e.g., TP +100%, SL -25%) until you find your style
  • Use /orders regularly to review and adjust active orders
  • Auto TP/SL saves time if you use consistent exit strategies across all trades
  • SL/TP sell slippage is 20% (separate from your portfolio sell slippage setting) to ensure execution in volatile conditions