trade-journal-analyzer
GitHub分析交易日志,提取胜率、盈亏比等统计模式,并基于三类标准(噪声、结构缺陷、逻辑失效)对回撤进行分类,提供具体应对建议。
Trigger Scenarios
Install
npx skills add winstonkoh87/Athena-Public --skill trade-journal-analyzer -g -y
SKILL.md
Frontmatter
{
"name": "trade-journal-analyzer",
"model": "default",
"auto-invoke": true,
"description": "Unified post-trade analytics: journal pattern extraction + drawdown classification. Absorbs: drawdown-classifier.",
"allowed-tools": [
"Read",
"Bash"
],
"argument-hint": "analyze journal | patterns | edge audit | classify drawdown | is this noise or real",
"context_trigger": "analyze trades, journal patterns, win rate, edge audit, losing streak, drawdown, is my system broken, trade review"
}
Trade Journal Analyzer (Expanded)
Absorbs:
drawdown-classifier
Reads historical trade entries, extracts actionable statistical patterns, AND classifies drawdowns. Converts a "diary" into a "data warehouse."
Triggers
"analyze my trades", "journal patterns", "what's my actual WR", "edge audit", "losing streak", "drawdown", "is my system broken", "should I stop trading", "3 losses in a row"
Core Analytics
- Ingest: Read entries from
.context/trading_journal/. - Parse: Extract setup type, instrument, direction, entry, SL, TP, result, notes.
- Analyze:
- Win Rate by Setup Type: Which setups are actually profitable?
- Win Rate by Instrument: Where is the edge strongest?
- Win Rate by Time of Day: Asian vs London vs NY session performance.
- Average R:R Achieved: Planned RR vs actual RR (execution gap).
- Drawdown Sequences: Longest losing streaks, recovery time.
- Edge Decay: Is WR trending up or down over last 20 trades?
- Flag:
- Setups with WR < breakeven threshold → flag for review or removal.
- Instruments with consistent negative EV → stop trading them.
- Emotional notes correlation → do emotional trades have lower WR?
Drawdown Classification
Not all drawdowns are equal. The wrong response is more dangerous than the drawdown itself.
Class 1: Noise (Random Variance)
- Losing streak within expected statistical bounds for the system's WR.
- Test: At 60% WR, a 5-loss streak has P = 0.4^5 = 1.02%. Over 200 trades, ~2 expected.
- Response: Do nothing. Continue executing. Do NOT adjust.
Class 2: Structural (Setup Flaw)
- Losses concentrated in a specific setup, instrument, or time period.
- Test: Is the WR decline isolated to one setup type?
- Response: Quarantine the specific setup. Continue trading others.
Class 3: Thesis-Breaker (Edge Invalidation)
- Systematic WR decline across ALL setups.
- Test: Is the WR decline persistent (>30 trades)? Has market microstructure changed?
- Response: Full stop. Trigger
circuit-breaker. Paper trade. Re-validate edge.
Output Format
## Trade Journal Analysis (Last N Trades)
### Win Rate by Setup
| Setup | Trades | Wins | WR | Avg RR | EV/Trade |
|-------|--------|------|----|--------|----------|
### Win Rate Trend (Rolling 20)
[Trending UP / DOWN / FLAT] — current WR: XX%
### Drawdown Classification
Observed: X losses in last Y trades
P(this streak | WR=Z%): XX.X%
Classification: [NOISE / STRUCTURAL / THESIS-BREAKER]
Prescribed Action: [Continue / Quarantine setup X / Full stop]
### Edge Health
Verdict: [HEALTHY / DECAYING / CRITICAL]
Integration
- Feeds into
zenith-executionfor forward simulation (Monte Carlo) - Validates Kelly assumptions (is the stated WR real?)
- Triggers
circuit-breakerif edge decay is CRITICAL
Version History
- e624e2d Current 2026-07-19 08:48


