Runs Monte Carlo simulations for traders: estimates setup odds via block-bootstrapped price paths and stress-tests strategies by resampling trade R-multiples into equity paths for return ranges, drawdowns, and risk of ruin.
Ships in trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
trading-odds)Two questions, two modes:
1. Is this setup worth it? (setup)
python3 scripts/mc.py setup AAPL --entry 195 --stop 188 --target 212 --horizon 20
python3 scripts/mc.py setup BTC-USD --entry 64000 --stop 61000 --target 70000 --interval 1h --period 1mo --horizon 48
Builds 10,000 future paths from 5-bar blocks of the last 250 bars (keeps gaps, ranges and short-term momentum), checks stop before target inside each bar, and reports P(target first), P(stop first), expected R and a verdict versus the breakeven win rate for that reward:risk.
2. What can this system do to my account? (trades)
python3 scripts/mc.py trades --csv trades.csv --risk-pct 1 --trades 100 --report mc.html # from trading-backtest --trades-csv
python3 scripts/mc.py trades --journal --risk-pct 0.5 # your real trades
python3 scripts/mc.py trades --r "2.1,-1,-1,0.4,3,-1,-0.6,1.8,-1,2.5" --trades 200
Resamples R-multiples into 10,000 sequences: return and max-drawdown percentiles, P(loss), P(drawdown >= 10/20/30%), risk of ruin, worst losing streaks.
prob_target_first with breakeven_win_rate (1 / (1 + R:R)).scripts/_vendor/tradekit/__init__.py (opens in a new tab)scripts/_vendor/tradekit/alerts.py (opens in a new tab)scripts/_vendor/tradekit/analysis.py (opens in a new tab)scripts/_vendor/tradekit/backtest.py (opens in a new tab)scripts/_vendor/tradekit/brokers/__init__.py (opens in a new tab)scripts/_vendor/tradekit/brokers/_rest.py (opens in a new tab)scripts/_vendor/tradekit/brokers/base.py (opens in a new tab)scripts/_vendor/tradekit/brokers/dhan.py (opens in a new tab)scripts/_vendor/tradekit/brokers/fyers.py (opens in a new tab)scripts/_vendor/tradekit/brokers/groww.py (opens in a new tab)scripts/_vendor/tradekit/brokers/kite.py (opens in a new tab)scripts/_vendor/tradekit/brokers/paper.py (opens in a new tab)scripts/_vendor/tradekit/brokers/upstox.py (opens in a new tab)scripts/_vendor/tradekit/cli.py (opens in a new tab)scripts/_vendor/tradekit/config.py (opens in a new tab)scripts/_vendor/tradekit/data.py (opens in a new tab)scripts/_vendor/tradekit/disclosures.py (opens in a new tab)scripts/_vendor/tradekit/expr.py (opens in a new tab)scripts/_vendor/tradekit/feeds.py (opens in a new tab)scripts/_vendor/tradekit/frame.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/trading-skills:trading-oddsfrom trading-skills
npx claudepluginhub reddygopalkrishna/trading-skills --plugin trading-skills21 skills in this plugin
/trading-alertsPrice alerts for any market - above or below a price, a trade's stop and target (long or short), a percent move from the previous close, a time on the exchange clock, the opening bell and minutes before the close, plus stop and target alerts for every open trade in the journal in one go. Works out each exchange's session from the data (NYSE, Nasdaq, NSE, BSE, LSE, TSE...) so holidays need no tables; each alert rings once; optional desktop notifications. Use when the user says "alert me when", "tell me if RELIANCE crosses 1400", "watch my stop", "remind me to close by 3:20", "is the market open", "when does NSE open", or right after a trade is planned or opened./trading-backtestBacktest trading strategies written as simple rules on one or many symbols in any market - next-bar-open execution with no look-ahead, commissions and slippage, ATR/percent/rule-based stops, R or percent targets, trailing stops, time exits, risk-based position sizing, max concurrent positions with ranking, benchmark comparison, in-sample vs out-of-sample split and a self-contained HTML report. Use when the user asks "does this strategy work", "backtest X", "test a moving-average crossover", "what if I bought when RSI was below 30", or wants to validate an idea before trading it.