Skip to content

naimkatiman/tradeclaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

523 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TradeClaw logo

TradeClaw

Open-source AI trading signal platform. Self-hosted. Free forever.

Stars License: MIT Traders Docker Demo Uptime Subscribers Weekly Digest Run on Replit Run on Fly.io Supabase Ready Sponsor

πŸš€ Live Demo Β· ⚑ Get Started Β· πŸ“‘ API Β· πŸ“– Docs Β· 🀝 Contribute

🌍 δΈ­ζ–‡ | ζ—₯本θͺž | ν•œκ΅­μ–΄


RSI Β· MACD Β· EMA Β· Bollinger Β· Stochastic β€” 5-indicator confluence. Live signals for BTC, ETH, Gold, Forex. Deploy in 60 seconds, no subscription required.

TradeClaw Signals Demo

Try it now β€” no install

npx @naimkatiman/tradeclaw-demo

Opens a full live demo at http://localhost:3001 β€” signals, leaderboard, backtest, all running locally.

πŸ‘‰ Interactive Setup Guide β†’

Deploy in 60 seconds

docker run -p 3000:3000 tradeclaw/tradeclaw

Open http://localhost:3000 β€” done.

Deploy on Railway

Supabase Setup Guide β€” upgrade from JSON to Postgres with one command.

Or with Docker Compose (adds persistent data):

git clone https://github.com/naimkatiman/tradeclaw
cd tradeclaw && cp .env.example .env
docker compose up -d

What you get

TradeClaw TradingView 3Commas
Self-hosted βœ… ❌ ❌
Open source βœ… ❌ ❌
Free forever βœ… ❌ ($15/mo+) ❌ ($29/mo+)
REST API βœ… ❌ paid βœ…
Telegram bot βœ… built-in ❌ βœ… paid
Custom plugins βœ… JS Pine Script ❌
MCP / AI native βœ… ❌ ❌

Features: Dashboard Β· Backtest Β· Screener Β· Paper trading Β· Telegram bot Β· Webhooks Β· Discord bot Β· Signal replay Β· Multi-timeframe Β· AI explanations Β· CLI Β· MCP server Β· Plugin system Β· PWA Β· RSS feeds Β· 190+ pages

Strategy Presets

Five named entry strategies, swappable via SIGNAL_ENGINE_PRESET env var. Every signal is tagged with strategyId so you can audit which logic fired it.

Preset Logic
classic Baseline RSI + MACD + EMA scoring β€” no regime filter, no risk breakers
regime-aware Classic signals filtered by HMM regime, rejects counter-trend trades
hmm-top3 Regime-aware signals ranked by confidence, top 3 only β€” current production
vwap-ema-bb Mean-reversion at BB extremes with VWAP + EMA trend confirmation
full-risk HMM top-3 with risk-weighted allocation and full circuit-breaker pipeline

Compare them side-by-side β€” multi-select any presets in the backtest UI to see metrics tables and equity-curve overlay charts. Sharpe, drawdown, win-rate, and overlapping-trade handling are all computed correctly (#57, #58).

import { runBacktest } from '@tradeclaw/strategies';

const result = await runBacktest({
  preset: 'hmm-top3',
  candles,
  allocation: { perTrade: 0.02 },
  risk: { maxConcurrent: 3 },
});

Public Signal Feed

Rate-limited public API tier β€” no auth, no key, just fetch:

curl https://tradeclaw.win/api/feed/public
curl https://tradeclaw.win/api/signal-of-the-day

Live Signal Badges

Embed live BTC/ETH/Gold signals in any README β€” auto-refresh every 5 min, no API key:

BTC Signal ETH Signal Gold Signal

[![BTC Signal](https://tradeclaw.win/api/badge/BTCUSD)](https://tradeclaw.win)
[![ETH Signal](https://tradeclaw.win/api/badge/ETHUSD)](https://tradeclaw.win)

Packages

All packages are published to GitHub Packages.

Setup β€” add to your project's .npmrc:

@naimkatiman:registry=https://npm.pkg.github.com

Then install:

npm install @naimkatiman/tradeclaw           # CLI
npm install @naimkatiman/tradeclaw-js        # JS/TS SDK
npm install @naimkatiman/tradeclaw-agent     # Self-hosted agent
npm install @naimkatiman/tradeclaw-mcp       # MCP server for AI assistants
npm install @naimkatiman/tradeclaw-discord   # Discord bot
npm install @naimkatiman/tradeclaw-demo      # Local demo
npx @naimkatiman/create-tradeclaw            # Scaffold a new instance

CLI

npx @naimkatiman/tradeclaw signals --pair BTCUSD --limit 5
npx @naimkatiman/tradeclaw leaderboard --period 30d
npx @naimkatiman/tradeclaw health

MCP Server (Claude Desktop)

{
  "mcpServers": {
    "tradeclaw": {
      "command": "npx",
      "args": ["@naimkatiman/tradeclaw-mcp"]
    }
  }
}

GitHub Action

- uses: naimkatiman/tradeclaw/packages/tradeclaw-action@main
  with: { pair: BTCUSD, min_confidence: 70 }

Action docs β†’ Β· Marketplace β†’

Contributing

Check good first issues and contribution guide.

Contributors

Thanks to everyone who helps make TradeClaw better. If you’re looking to contribute, start with CONTRIBUTING.md.

⭐ Star this repo to help others discover TradeClaw

Sponsor Buy Me a Coffee


MIT License · Made with ⚑ · tradeclaw.win

About

πŸ€– Self-hosted AI trading signals β€” 5 swappable strategy presets (HMM, regime-aware, VWAP+BB), multi-preset backtest comparison, paper trading, Telegram bot. BTC, ETH, Gold, Forex. Free forever.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors