backtrack-mcp
v0.1.1
Published
Backtrack: describe a trading strategy in plain words, backtest it honestly on real prices, and walk it up draft → backtested → paper → live (human-approved). MCP server + dashboard for AI agents; orders go through Brakeline.
Maintainers
Readme
Backtrack · strategy lab for AI agents
Test the trade before you risk it. · Website · npm · works with Brakeline and Ballast
Describe a trading strategy in plain words. Backtrack turns it into auditable rules, backtests it on ~3 years of real daily prices, and walks it up draft → backtested → paper → live. Only the human can approve live. Backtrack never trades: the agent places orders through Brakeline.
- Plain words in (English or Indonesian): "Buy NVDA when it drops 5% in a week. Sell at +8% or a 4% stop loss."
Anything it can't read is reported in
unparsed, never guessed. - Honest backtest: signals at the close, fills at the next open, stop loss assumed before take profit on the same day, gap fills, 5 bps slippage. Compared with buy & hold and SPY.
- Promotion gate: 10+ trades, drawdown under the limit, positive return, and better return per unit of risk than simply holding. Warns when the position size exceeds the user's Brakeline cap.
- strategy.md + risk.md written for every saved strategy.
- Paper / live loop:
todays_signals(entries),check_exits(take profit, stop loss, max hold, RSI / average exits for open positions),record_fill,paper_status.
Rules: price drop / rise over N days, RSI below / above, above / below an N-day average, average cross up, MACD cross up, volume spike. Exits: take profit, stop loss, max hold days, RSI above.
Install
claude mcp add backtrack -- npx -y backtrack-mcp
claude mcp add brakeline -- npx -y brakeline # executes the orders, risk-checked
npx backtrack-mcp dashboard # strategy lab on http://localhost:6200/app
npx backtrack-mcp "Buy QQQ when it drops 3% in 2 days, take profit 4%, stop loss 4%"Develop
npm install && npm start && npm testPast results do not predict future returns. Not investment advice.
