OPEN SOURCE · MIT LICENSED

KLAWTRADE

THE NEXT GENERATION OF WEALTH CREATION

Rule-based strategies, 14-check risk management, and a real-time dashboard. Backtest on historical data, then deploy to any broker with one config change.

bash

$ pip install klawtrade

$ klawtrade init --quick

$ klawtrade start

KlawTrade running | Dashboard: http://localhost:8080

Strategies: momentum, mean_reversion | Watchlist: 10 symbols

◆ ALGORITHMIC TRADING ◆ RULE-BASED STRATEGIES ◆ 14-CHECK RISK GATE ◆ 7-TRIGGER CIRCUIT BREAKER ◆ HISTORICAL BACKTESTING ◆ REAL-TIME DASHBOARD ◆ 6 BROKER INTEGRATIONS ◆ OPEN SOURCE · MIT LICENSED◆ ALGORITHMIC TRADING ◆ RULE-BASED STRATEGIES ◆ 14-CHECK RISK GATE ◆ 7-TRIGGER CIRCUIT BREAKER ◆ HISTORICAL BACKTESTING ◆ REAL-TIME DASHBOARD ◆ 6 BROKER INTEGRATIONS ◆ OPEN SOURCE · MIT LICENSED◆ ALGORITHMIC TRADING ◆ RULE-BASED STRATEGIES ◆ 14-CHECK RISK GATE ◆ 7-TRIGGER CIRCUIT BREAKER ◆ HISTORICAL BACKTESTING ◆ REAL-TIME DASHBOARD ◆ 6 BROKER INTEGRATIONS ◆ OPEN SOURCE · MIT LICENSED◆ ALGORITHMIC TRADING ◆ RULE-BASED STRATEGIES ◆ 14-CHECK RISK GATE ◆ 7-TRIGGER CIRCUIT BREAKER ◆ HISTORICAL BACKTESTING ◆ REAL-TIME DASHBOARD ◆ 6 BROKER INTEGRATIONS ◆ OPEN SOURCE · MIT LICENSED
Features

Everything you need to trade algorithmically

From strategy execution to risk management to backtesting — all in a single pip-installable package.

01

Rule-Based Strategies

Momentum and mean reversion strategies using SMA crossover, RSI, MACD, Bollinger Bands, and Stochastic RSI. No black-box ML.

02

14-Check Risk Gate

Every signal passes through position sizing, loss limits, drawdown protection, sector allocation, and correlation checks. No overrides.

03

7-Trigger Circuit Breaker

Automatic trading halt on consecutive losses, daily/weekly loss limits, max drawdown, VIX spikes, or system errors.

04

Historical Backtesting

Download market data, replay through strategies and risk management, get Sharpe ratio, win rate, drawdown, and full trade logs.

05

Real-Time Dashboard

Live equity curve, positions, trade log, and kill switch via WebSocket. See everything happening in real time at localhost:8080.

06

6 Broker Integrations

Connect to Alpaca, Interactive Brokers, Coinbase, Binance, Kraken, or Tradier. Works in simulation without keys.

Dashboard

Monitor everything in real time

WebSocket-powered updates stream every position, trade, and risk metric to your browser the instant they happen. Zero refresh. Zero delay.

localhost:8080

Portfolio Value

0

+4.22%

Day P&L

0

+0.37%

Open Positions

0

4 of 10 max

Circuit Breaker

--

All systems nominal

Equity Curve

$110k$105k$100k$95k
Mar 23Mar 25Mar 27Mar 29Mar 31

Open Positions

4/10
AAPL+142.2%
15 shares @ $178.42
+$142.20
NVDA+312.8%
8 shares @ $875.10
+$312.80
MSFT-47.2%
12 shares @ $415.33
-$47.16
GOOGL+28.5%
6 shares @ $156.72
+$28.50

Recent Trades

TimeSymbolSideQtyPriceStrategyStatus
09:42:13NVDABUY8$875.10momentumFilled
09:38:07AAPLBUY15$178.42mean_revFilled
09:35:22TSLASELL10$241.88momentumFilled
09:31:45MSFTBUY12$415.33pairsFilled
09:30:02GOOGLBUY6$156.72breakoutFilled
System Active|7 risk checks passing|No circuit breakers triggered

Dashboard mockup is illustrative. The real dashboard updates via WebSocket in real time.

Backtesting

Test before you trade

Replay your strategies against real market data. Evaluate risk-adjusted performance before committing capital.

backtest command

$ klawtrade backtest \

--start-date 2024-01-01 \

--end-date 2024-12-31 \

--symbols AAPL,MSFT,NVDA \

--strategy momentum

Total Return

+0.00%

Sharpe Ratio

0.000

Max Drawdown

0.00%

Win Rate

0.0%

Profit Factor

0.000

Total Trades

0

Avg Hold

0.0 days

Exposure

0.0%

Sample output is illustrative. Actual results depend on market conditions and configuration.

Quick Start

Up and running in 3 steps

1

Step 1

Install

$ pip install klawtrade
2

Step 2

Configure

$ klawtrade init
3

Step 3

Trade

$ klawtrade start

Open Source

Built in the open.
MIT licensed.

KlawTrade is fully open source. Inspect every line of code that touches your money. Contribute strategies, fix bugs, or fork it and make it your own. No black boxes, no vendor lock-in.