right-longGuide

Trading Bot Configuration

Default Settings

  • Starting Capital: $2,000

  • Minimum Trade: $10

  • Maximum Trade: $100

  • Trade Interval: 30 seconds

  • Decision Model: Claude Sonnet 4.5

Customization

Edit app/api/trading/execute/route.ts:

const DEFAULT_STATE: TradingState = {
  cash: 2000.0,  // Change starting capital
  holdings: {},
  trades: [],
  totalTrades: 0,
  winningTrades: 0,
  portfolioValue: 2000.0,
}

Dashboard Refresh Intervals

Edit app/dashboard/page.tsx:

Cache Configuration

Edit API route files to adjust cache TTL:


Best Practices

Trading Bot

  1. Monitor Performance Regularly

    • Check portfolio value daily

    • Review trade history weekly

    • Analyze win rate trends

  2. Set Appropriate Limits

    • Adjust trade sizes based on risk tolerance

    • Set maximum position sizes

    • Configure stop-loss levels

  3. Review AI Decisions

    • Check Backrooms reflections

    • Analyze trading patterns

    • Adjust strategy based on insights

Dashboard Usage

  1. Use Real-Time Data

    • Refresh intervals are optimized

    • Don't manually refresh excessively

    • Trust the auto-refresh system

  2. Monitor Multiple Markets

    • Check all three market types

    • Compare trends across markets

    • Identify correlations

  3. Copy Addresses Carefully

    • Verify contract addresses before use

    • Use the built-in copy functionality

    • Double-check addresses in your wallet

Chat Interface

  1. Ask Specific Questions

    • Be clear about what you want to know

    • Provide context when needed

    • Use URLs for specific analysis

  2. Leverage Real-Time Data

    • Ask about current market conditions

    • Request analysis of recent trades

    • Get portfolio insights

  3. Review AI Recommendations

    • Consider AI suggestions carefully

    • Verify with your own analysis

    • Don't blindly follow recommendations

Database Management

  1. Regular Backups

    • MongoDB Atlas provides automatic backups

    • Export trading state periodically

    • Keep reflection history

  2. Monitor Database Size

    • Reflections are limited to last 100

    • Trades are limited to last 100

    • Clean up old data if needed

  3. Connection Management

    • Use connection pooling

    • Monitor connection limits

    • Optimize query performance


Last updated