Slot Exit

Decide hold vs exit for an open LP slot (TP/SL/range-abandoned), close it swapping back to quote, and rotate the freed capital.

hummingbot 3482aea 1.3 KB Updated

File contents

Slot Exit — TP/SL + rotation

Exit triggers (evaluate every tick, per open slot)

Exit when ANY is true:

  • Take profit: slot net_pnl_pct ≥ take_profit_pct (default 20).
  • Stop loss: slot net_pnl_pct ≤ −stop_loss_pct (default 20).
  • Range abandoned: OUT_OF_RANGE for a sustained period AND OHLCV trend continues away from the range (price won't come back → no fees, only IL/exposure).

Measure PnL in quote_asset terms (net of fees earned, IL, rent, tx). Use executor net_pnl_pct / custom_info when available; otherwise compute from current vs initial value.

How to exit

stop_executor(executor_id=<id>, keep_position=false)

  • keep_position=false removes on-chain liquidity, runs the close-out swap back to quote_asset, and refunds position rent.
  • Confirm the executor reaches COMPLETE and rent is refunded (position_rent_refunded > 0).

Rotate

  • A freed slot is re-filled next tick from a fresh pool_ranking.
  • Do NOT immediately re-enter the pool you just exited (esp. a stop-loss) unless it clearly re-ranks on top — avoid churn/fee bleed.
  • Journal each exit: pool, reason (TP/SL/abandoned), realized PnL, fees earned, duration.

hummingbot/condor/tree/main/agents/solana_dex_lp_expert/skills/slot_exit commit 3482aead22

Frequently asked questions

npx skillmds@latest add hummingbot/slot-exit