OS Trading Engine
Platform Guide
Positions
Manual Close

Manual Close

Manual closure allows you to override automated logic (like stop loss or stale trade rules) and exit a trade immediately. This executes a market sale via the Jupiter Aggregator and updates your balance instantly.


Overview

FeatureDetails
Immediate ExitExecutes a market order the moment you confirm.
Full ControlOverride automation to lock in profits or cut losses early.
Real-time DataConfirmation dialog shows live P&L and token value at current prices.
Mode SupportWorks in both Simulation (virtual sale) and Live (on-chain sale) modes.
⚠️

Irreversible: Manual closure is permanent. Once the agent executes the sale, the position cannot be reopened.


How to Close a Position

You can trigger a manual close from two locations on the Dashboard:

  1. Positions Table: Click the Close Position button on any row.
  2. Position Details: Click a row to open the details dialog, then click Close Position.

Confirmation Process

When you click the button, a confirmation dialog appears:

  • Review Metrics: Check the current P&L, token amount, and indicative market price.
  • Currency Toggle: Use the dashboard's currency toggle to switch between SOL and USD views.
  • Finalize: Click the red Close Position button to execute.
Close Position Dialog
Confirmation dialog showing live position metrics before sale

What Happens on Execution

  1. Sale: The agent sends a market order to Jupiter. In Live mode, this is a real on-chain transaction.
  2. Balance: Once the sale completes, your SOL balance is updated in the dashboard.
  3. Removal: The position is removed from the "Live Agent Trades" table.
  4. History: A SWAP (sale) record is created in your Agent Activity history.

Manual vs. Automatic Closing

FeatureManual CloseAutomatic (Stop Loss/Stale)
TriggerUser clicks buttonPre-set price or time conditions met
TimingAny timeOnly when rules are triggered
ReasonStrategic exitRisk management & efficiency
ExecutionSame (Jupiter market order)Same (Jupiter market order)

FAQ & Troubleshooting

Price & Slippage

  • Indicative Prices: Prices shown in the dialog are estimates. Final execution may vary slightly due to market movement and slippage, especially on illiquid tokens.
  • Failed Closure: If a position fails to close, check your wallet balance (for fees) or network status. The position may also have been closed by an automated trigger just as you clicked.

After Closure

  • Where are the results? View realized P&L and transaction hashes under Agent Activity.
  • Performance: Realized outcomes are immediately added to your agent's Win Rate and Average Return metrics.
  • Still showing? If a closed position persists in the table, the WebSocket connection may be lagging. Refresh the page to sync the UI.

Best Practices

  • Trust the Strategy: Generally, let your automated stop loss handle exits. Only close manually if the underlying signal or market conditions have fundamentally changed.
  • Check Liquidity: For low-cap tokens, review the chart on DexScreener before closing large positions to understand potential price impact.
  • Verify Mode: Always double-check if you are in Live or Simulation mode before confirming, as manual closure in Live mode involves real capital.