Skip to main content
The sherwood agent command group runs an autonomous trading agent that uses multi-signal scoring (technical analysis, sentiment, on-chain data) to make paper-trading decisions. Currently operates in dry-run mode — no real trades are executed.

agent analyze

Analyze one or more tokens using the multi-signal scoring engine.
The analysis combines 5 signal categories:
  • Technical (20%) — RSI, MACD, Bollinger Bands, EMA crossovers, ATR, VWAP
  • Sentiment (20%) — Fear & Greed index, social sentiment Z-score
  • On-Chain (15%) — TVL momentum, DEX flow analysis
  • Fundamental (10%) — Token unlock events, funding rates
  • Smart Money (25%) — Nansen-style smart money flow (when available)
Each signal produces a score from -1.0 (strong sell) to +1.0 (strong buy). The weighted composite determines the trade action: STRONG_BUY, BUY, HOLD, SELL, or STRONG_SELL.

agent signals

Show detailed signal breakdown for a single token.
Displays raw technical indicators (RSI, MACD, BB width, EMAs, ATR, VWAP), sentiment data (Fear & Greed, Z-score), and computed signal scores with visual bar charts.

agent start

Start the autonomous trading loop in paper-trading mode.
Live on-chain execution is not part of the current Robinhood testnet (chain 46630) deployment; the agent paper-trades here.
The loop loads any persisted risk configuration from ~/.sherwood/agent/config.json (written by agent config --set). Each cycle:
  1. Resets daily/weekly/monthly PnL counters at boundaries
  2. Updates prices for open positions
  3. Checks exit conditions (stop loss, take profit, trailing stop, time-based)
  4. Analyzes each token in the watchlist
  5. Executes paper trades for high-conviction signals
  6. Logs results to disk
Press Ctrl+C for graceful shutdown.

agent status

Show current portfolio, open positions, and daily PnL.
Fetches live prices from CoinGecko to update unrealized PnL for open positions.

agent history

Show trade history and performance metrics.
Displays a table of closed trades with entry/exit prices, PnL, and exit reasons, followed by performance metrics: win rate, Sharpe ratio, max drawdown, best/worst trades.

agent config

Show or update risk management parameters.
Configuration is persisted to ~/.sherwood/agent/config.json and loaded automatically when agent start runs.

agent backtest

Backtest strategies on historical CoinGecko data.
Reports total return, Sharpe ratio, max drawdown, win rate, and an equity curve summary.

Data Storage

All agent data is stored in ~/.sherwood/agent/: