원클릭으로
reflect-performance-review
// Reflect, Evaluate, Fine-tune, Learn, Evolve, Correct, Transform — nightly automated performance review
// Reflect, Evaluate, Fine-tune, Learn, Evolve, Correct, Transform — nightly automated performance review
Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.
Autonomous multi-slot trading orchestrator
First-time setup — from zero to first trade on Hyperliquid
Guard — two-phase ROE-based trailing stop system for Hyperliquid perps. Phase 1 lets the trade breathe with wide retrace and patient breach counting. Phase 2 locks profit through configurable tier ratcheting with per-tier retrace overrides. Supports LONG and SHORT, hard/soft breach decay, stagnation take-profit, and preset configs. Use when protecting an open position, setting trailing stops, or automating profit-locked exits.
Detects assets with sudden capital inflow via OI/volume/funding proxy signals
Screens all Hyperliquid perps and surfaces top trading setups
| name | reflect-performance-review |
| version | 1.0.0 |
| description | Reflect, Evaluate, Fine-tune, Learn, Evolve, Correct, Transform — nightly automated performance review |
| author | Nunchi Trade |
| tags | ["reflect","performance","review","analytics","self-improvement"] |
| cron | 55 23 * * * |
| dependencies | ["modules/reflect_engine.py","modules/reflect_reporter.py"] |
Nightly automated performance review engine. APEX runs all day — REFLECT reviews every trade at night, computing metrics, detecting patterns, and producing data-driven improvement recommendations.
trades.jsonl → ReflectEngine.compute() → ReflectMetrics → ReflectReporter.generate() → report.md
data/cli/trades.jsonldata/reflect/YYYY-MM-DD.md| Metric | Formula | Healthy Range |
|---|---|---|
| Win Rate | winning_trades / total_trades | > 50% |
| Profit Factor (Gross) | gross_wins / gross_losses | > 1.5 |
| Profit Factor (Net) | (gross_wins - fees) / gross_losses | > 1.2 |
| FDR (Fee Drag Ratio) | total_fees / gross_wins * 100 | < 20% |
| Monster Dependency | best_trade_pnl / net_pnl * 100 | < 50% |
| Max Consecutive Losses | longest loss streak | < 5 |
hl reflect run # Review since last report
hl reflect run --since 2026-03-01 # Review from specific date
hl reflect report # View latest report
hl reflect report --date 2026-03-03 # View specific date
hl reflect history # Show metric trend over time
hl reflect history -n 30 # Last 30 reports
You are the REFLECT reviewer. Your job is to analyze every trade from the past session, compute performance metrics, identify weaknesses, and produce actionable recommendations. You run nightly — the APEX runs by day, you review at night.
RULES:
| Metric State | Severity | Action |
|---|---|---|
| FDR > 30% | CRITICAL | Reduce trade frequency or widen entry criteria immediately |
| FDR 20-30% | WARNING | Monitor — consider reducing size or frequency |
| FDR < 20% | OK | Fees are manageable |
| Win rate < 35% | CRITICAL | Tighten entry criteria — Radar threshold to 200+ |
| Win rate 35-45% | WARNING | Review losing trades for pattern |
| Win rate > 50% | OK | Entries are working |
| Monster dep > 60% | WARNING | One trade carrying the session — diversify alpha |
| Monster dep > 80% | CRITICAL | Fragile — entire PnL depends on one lucky trade |
| Consec losses > 5 | WARNING | Add loss streak circuit breaker to APEX |
| Long PnL < 0, Short PnL > 0 | WARNING | Long entries are leaking — reduce long bias |
| Holding < 5 min dominates | WARNING | Over-trading — increase min hold time |
hl reflect history.| Error | Cause | Fix |
|---|---|---|
No trades found | No trading activity in period | Normal — nothing to review |
Cannot pair round trips | Unmatched buys/sells | Open positions — REFLECT pairs only closed trades |
trades.jsonl not found | First run or wrong data dir | Run at least one trade first |
Report generation failed | Disk full or permissions | Check data/reflect/ directory permissions |
REFLECT is the learning layer of the APEX system. Run REFLECT nightly after APEX stops. Feed REFLECT insights back into APEX configuration (Radar thresholds, DSL presets, position sizing). Over time, REFLECT recommendations should converge as the system improves.
# Nightly REFLECT review at 11:55 PM
55 23 * * * cd ~/agent-cli && source .venv/bin/activate && hl reflect run >> logs/reflect.log 2>&1