> For the complete documentation index, see [llms.txt](https://docs.dexlens.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dexlens.io/tools/auto-trade-bot.md).

# Auto-Trade Bot

The Auto-Trade Bot streamlines your trading experience with advanced automation features. Highly customizable settings give you precise control over every aspect of your trading strategy.

### 🚀 What It Does

#### Automated Trading

* **Auto Buy**: Execute purchases based on predefined criteria
* **Auto Sell**: Take profits and cut losses automatically
* **Stop Loss**: Protect your capital with automatic stop-losses
* **Take Profit**: Secure profits at predetermined levels

#### Advanced Features

* **Protection Sell**: Automatically exit if rug pull signs are detected
* **Sniping**: Lightning-fast trades at trade opening
* **Dynamic Settings**: Adjust parameters based on market conditions
* **Risk Management**: Built-in position sizing and risk controls

#### Integration

* **Filter Bot**: Trade based on your custom filter alerts
* **Reversal Bot**: Execute trades on high-quality signals
* **Real-Time**: Instant execution when conditions are met
* **Multi-Chain**: Support for Ethereum, Solana, and Base

### 📱 How to Use

1. **Configure Settings**: Set up your trading parameters
2. **Enable Features**: Turn on auto-buy, auto-sell, etc.
3. **Set Limits**: Define stop-loss and take-profit levels
4. **Start Trading**: Let the bot execute trades automatically

### 🎯 Perfect For

* **Busy Traders**: Execute trades without constant monitoring
* **Speed Traders**: Get lightning-fast execution
* **Risk-Conscious**: Automated risk management
* **Strategy Traders**: Implement systematic approaches

### ⚡ Key Features

* **Lightning Speed**: Execute trades in milliseconds
* **Customizable**: Highly configurable trading parameters
* **Risk Management**: Built-in protection mechanisms
* **Integration**: Works with all Dexlens Tools
* **Multi-Chain**: Support for major blockchain networks

### ⚙️ Trading Features

#### Auto Buy

* **Signal-Based**: Buy when Filter Bot or Reversal Bot signals
* **Custom Criteria**: Set your own buy conditions
* **Position Sizing**: Automatic position size calculation
* **Timing**: Execute at optimal entry points

#### Auto Sell

* **Take Profit**: Sell at predetermined profit levels
* **Stop Loss**: Cut losses at specified levels
* **Trailing Stop**: Follow price movements for maximum profit
* **Time-Based**: Sell after specified time periods

#### Protection Sell

* **Rug Detection**: Automatically sell if rug pull signs are detected
* **Volume Analysis**: Exit on unusual volume patterns
* **Price Action**: Sell on suspicious price movements
* **Multi-Factor**: Combine multiple risk indicators

#### Sniping

* **Launch Detection**: Buy immediately when trading opens
* **Gas Optimization**: Optimize gas for fastest execution
* **MEV Protection**: Protect against front-running
* **Timing**: Execute at the perfect moment

### 📊 Configuration Options

#### Basic Settings

* **Auto Buy**: Enable/disable automatic buying
* **Auto Sell**: Enable/disable automatic selling
* **Take Profit**: Set profit percentage (e.g., 20%)
* **Stop Loss**: Set loss percentage (e.g., 10%)

#### Advanced Settings

* **Protection Sell**: Enable rug pull protection
* **Sniping**: Enable launch sniping
* **Position Sizing**: Set maximum position size
* **Gas Limits**: Configure gas price limits

#### Risk Management

* **Max Position**: Maximum position size per trade
* **Daily Limit**: Maximum trades per day
* **Loss Limit**: Maximum daily loss amount
* **Cooldown**: Time between trades

### 🚨 Trading Alerts

#### Buy Execution Alert

```
⚡ AUTO BUY EXECUTED

🪙 Trade Details:
• Token: 0x1234...5678
• Amount: 1.5 ETH
• Price: $0.00125
• Gas Used: 0.003 ETH
• Execution Time: 0.8s

📊 Position:
• Entry Price: $0.00125
• Stop Loss: $0.00113 (10%)
• Take Profit: $0.00150 (20%)
• Position Size: 1.5 ETH

🎯 Trade executed successfully!
```

#### Sell Execution Alert

```
⚡ AUTO SELL EXECUTED

🪙 Trade Details:
• Token: 0x1234...5678
• Amount: 1.5 ETH
• Price: $0.00150
• Profit: +20.0%
• Gas Used: 0.002 ETH

📊 Results:
• Entry Price: $0.00125
• Exit Price: $0.00150
• Profit: +$375
• Duration: 2h 15m

🎯 Take profit executed successfully!
```

#### Protection Sell Alert

```
⚠️ PROTECTION SELL EXECUTED

🪙 Trade Details:
• Token: 0x9876...5432
• Amount: 2.0 ETH
• Price: $0.00095
• Loss: -5.0%
• Reason: Rug pull signs detected

🛡️ Protection:
• Volume Drop: -85%
• Price Manipulation: Detected
• Liquidity Drain: Detected
• Risk Score: 95/100

🚨 Position protected from rug pull!
```

### 💡 Pro Tips

#### Configuration Tips

* **Start Conservative**: Begin with safe settings
* **Test First**: Use small amounts to test strategies
* **Monitor Performance**: Track bot performance regularly
* **Adjust Settings**: Optimize based on results

#### Risk Management

* **Set Limits**: Always set stop-losses and position limits
* **Diversify**: Don't put all funds in auto-trading
* **Monitor Markets**: Keep track of overall market conditions
* **Regular Reviews**: Review and adjust settings monthly

### 🔗 Integration

Works seamlessly with other Dexlens Tools:

* **Filter Bot**: Auto-trade based on filter matches
* **Reversal Bot**: Execute trades on high-quality signals
* **Assistant Bot**: Analyze tokens before auto-trading
* **Terminal**: Monitor trades via web interface

### 📈 Performance Tracking

#### Trading Statistics

* **Total Trades**: Number of executed trades
* **Success Rate**: Percentage of profitable trades
* **Average Profit**: Typical profit per trade
* **Max Drawdown**: Largest loss period

#### Performance Metrics

* **Win Rate**: Percentage of winning trades
* **Profit Factor**: Gross profit / gross loss
* **Sharpe Ratio**: Risk-adjusted returns
* **Execution Speed**: Average execution time

### 🛡️ Risk Management

#### Built-in Protections

* **Stop Losses**: Automatic loss cutting
* **Position Limits**: Maximum position sizes
* **Daily Limits**: Maximum trades per day
* **Rug Protection**: Automatic exit on scam signs

#### Best Practices

* **Start Small**: Begin with small position sizes
* **Test Strategies**: Validate strategies before scaling
* **Monitor Closely**: Keep track of bot performance
* **Regular Updates**: Update settings based on market conditions

### 🎯 Trading Strategies

#### Conservative Strategy

* **Take Profit**: 10-15%
* **Stop Loss**: 5-8%
* **Position Size**: 1-2% of portfolio
* **Risk Level**: Low

#### Aggressive Strategy

* **Take Profit**: 25-50%
* **Stop Loss**: 10-15%
* **Position Size**: 3-5% of portfolio
* **Risk Level**: High

#### Balanced Strategy

* **Take Profit**: 15-25%
* **Stop Loss**: 8-12%
* **Position Size**: 2-3% of portfolio
* **Risk Level**: Medium

### 📊 Dashboard Features

#### Real-Time Monitoring

* **Active Positions**: Current open trades
* **Pending Orders**: Orders waiting for execution
* **Performance Stats**: Real-time performance metrics
* **Risk Metrics**: Current risk exposure

#### Historical Analysis

* **Trade History**: Complete trade log
* **Performance Charts**: Visual performance tracking
* **Profit/Loss Analysis**: Detailed P\&L breakdown
* **Strategy Analysis**: Performance by strategy type

***

**Remember**: Automated trading involves significant risk. Always test strategies thoroughly and never risk more than you can afford to lose. Past performance doesn't guarantee future results.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dexlens.io/tools/auto-trade-bot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
