- Home
- Skills
- Trading & Investing
- Trade Stats — Paste Results per Trade, Get Wins and Drawdown
Trade Stats — Paste Results per Trade, Get Wins and Drawdown
Calculate descriptive win rate, averages, gross profit factor and maximum drawdown from ordered trade results. Arithmetic only; no trading or investment advice.
$5
Works with the AI Agents you already use
Trade Stats — Paste Results per Trade, Get Wins and Drawdown
Example session with this skill installed
python3 scripts/trade_stats.py examples/trade-stats.csv
- Read your context and instructions
- Compiled the trade stats
Trade Stats
4 readable rows; 0 unreadable rows
Wins: 2; losses: 2; zero: 0
Win rate: 50%
Net P&L: 80
Average win: 65
Average loss: -25
Gross wins / absolute gross losses: 2.60
Maximum drawdown: 50 (line 4)
Trade rows (P&L / cumulative / peak / drawdown):
Open: 100 / 100 / 100 / 0
Close: -40 / 60 / 100 / 40
Fees: -10 / 50 / 100 / 50
Recovery: 30 / 80 / 100 / 20
Connects securely to your tools. The creator never sees your data.
About this skill
Paste ordered trade names and profit/loss values (CSV or TSV with a pnl column) and get win, loss and zero counts, win rate, net P&L, average win and loss, gross profit factor (gross wins divided by the absolute value of gross losses, two decimal places) and maximum drawdown with its source line. Rows stay in the order supplied, because drawdown depends on sequence.
Malformed amounts and extra cells are reported by source line; calculations summarize readable rows only. Each row keeps its own currency marker (USD, JPY, EUR, GBP); when currencies differ or are mixed with unmarked amounts, currency-dependent totals, averages, profit factor and drawdown are reported as unavailable. Limits: 30 digits per amount, 5,000 rows, 100,000 input bytes. Output formats: text, markdown, json, csv.
The tool performs arithmetic only; it does not assess a strategy or provide trading or investment advice, and the figures do not indicate future results. Python 3.9+ and the standard library; it runs locally.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.
Maximum 5,000 rows and 100,000 bytes per file. Requires a 'pnl' header in input files. Precision capped at 30 digits per amount.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python 3.9+