# Trading Journal — exact P&L for your AI agent

> Your agent logs trades and imports broker CSVs; a local SQLite ledger does the math. Exact P&L, stats, interactive dashboard, Obsidian notes.

Trading Journal — exact P&L for your AI agent is a free AI agent skill on Agensi by Maxim Sinyaev. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Maxim Sinyaev](https://www.agensi.io/creators/bemaxradio)
- Version: 1.1.0
- Last updated: 2026-11-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/trading-journal-exact-p-l-for-your-ai-agent
- Tags: trading-investing, finance-accounting

## About this skill

LLMs are bad at trade arithmetic: average prices after partial sells, fees, shorts, option multipliers, splits, several currencies. This skill makes sure your agent never does it.

Tell your agent "I bought 10 NVDA at 118.40, stop 109" or hand it a broker export, then ask "how did my swing trades do this quarter?". The agent records and asks questions; a deterministic ledger in a local SQLite file computes every number, and the agent quotes it.

**What you get**
- Exact P&L: average-cost ledger with entry and exit fees, partial closes, shorts and flips, options, splits, dividends, per-currency totals.
- Broker imports: any broker's CSV (columns auto-detected), Interactive Brokers Flex Query, OKX perpetuals (with funding), or JSON your agent builds from a broker or exchange API. Re-imports are safe; more broker presets are in the docs.
- Journal: thesis, stop and targets per trade, post-trade reviews, mistakes and mood, R-multiples, AI vs manual tags.
- Interactive dashboard: one offline HTML file with equity curve and drawdown, monthly P&L, calendar heatmap, breakdowns by strategy, ticker and tag, R distribution, open positions with risk to stop.
- Obsidian export: daily notes and per-ticker notes with Dataview frontmatter.
- Private: no account, no SaaS. The database never leaves your machine.
- Optional second skill, Trading Idea Analyst: a disciplined macro-to-idea research process that writes every idea to the journal so you can score AI ideas against your own trades later.

**Works with:** Claude Code (plugin), Codex, Cursor and any agent that reads SKILL.md or AGENTS.md. Needs Python 3.12+ via uv (installed automatically on first use).

**Free and open source (MIT).** Source, updates and issues: https://github.com/MaximSinyaev/agent-trading-journal

**Disclaimer:** Record-keeping tool, not financial, investment or tax advice. Provided as is, without warranty; use at your own risk. Check numbers against your broker before filing taxes.

## Requires

- Python 3.12+
- uv (auto-installs the CLI)

## Known limitations

Average-cost method only (no FIFO/LIFO yet). Currencies are reported separately, never converted to a base currency. Live prices need a market-data tool or the optional Yahoo fetch. Not a tax report.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Trading Journal — exact P&L for your AI agent skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Trading Journal — exact P&L for your AI agent do?

Your agent logs trades and imports broker CSVs; a local SQLite ledger does the math. Exact P&L, stats, interactive dashboard, Obsidian notes.

### Which AI agents support Trading Journal — exact P&L for your AI agent?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Trading Journal — exact P&L for your AI agent?

Connect your AI agent to Agensi through MCP, then ask it to use Trading Journal — exact P&L for your AI agent on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
