Crypto Self-Learning

Self-learning system for crypto trading. Logs trades with full context (indicators, market conditions), analyzes patterns of wins/losses, and auto-updates trading rules. Use to logโ€ฆ

totaleasy

@totaleasy

What This Skill Does

Logs crypto trades with full context (indicators, market conditions), analyzes win/loss patterns, and auto-generates trading rules to improve accuracy over time.

Replaces manual trade journaling and subjective post-mortem analysis by automatically extracting data-driven patterns and actionable rules from your actual trade history.

When to Use It

  • Log a completed crypto trade with entry/exit details and market context
  • Analyze win rate by direction, day of week, or indicator ranges
  • Generate data-driven trading rules from your trade history
  • Auto-update your trading agent's memory with learned rules
  • Run a weekly review comparing current vs past performance
  • Filter analysis to a specific trading pair or direction

Install

$ openclaw skills install @totaleasy/crypto-self-learning

Crypto Self-Learning ๐Ÿง 

AI-powered self-improvement system for crypto trading. Learn from every trade to increase accuracy over time.

๐ŸŽฏ Core Concept

Every trade is a lesson. This skill:

  1. Logs every trade with full context
  2. Analyzes patterns in wins vs losses
  3. Generates rules from real data
  4. Updates memory automatically

๐Ÿ“ Log a Trade

After EVERY trade (win or loss), log it:

python3 {baseDir}/scripts/log_trade.py \
  --symbol BTCUSDT \
  --direction LONG \
  --entry 78000 \
  --exit 79500 \
  --pnl_percent 1.92 \
  --leverage 5 \
  --reason "RSI oversold + support bounce" \
  --indicators '{"rsi": 28, "macd": "bullish_cross", "ma_position": "above_50"}' \
  --market_context '{"btc_trend": "up", "dxy": 104.5, "russell": "up", "day": "tuesday", "hour": 14}' \
  --result WIN \
  --notes "Clean setup, followed the plan"

Required Fields:

FieldDescriptionExample
--symbolTrading pairBTCUSDT
--directionLONG or SHORTLONG
--entryEntry price78000
--exitExit price79500
--pnl_percentProfit/Loss %1.92 or -2.5
--resultWIN or LOSSWIN

Optional but Recommended:

FieldDescription
--leverageLeverage used
--reasonWhy you entered
--indicatorsJSON with indicators at entry
--market_contextJSON with macro conditions
--notesPost-trade observations

๐Ÿ“Š Analyze Performance

Run analysis to discover patterns:

python3 {baseDir}/scripts/analyze.py

Outputs:

  • Win rate by direction (LONG vs SHORT)
  • Win rate by day of week
  • Win rate by RSI ranges
  • Win rate by leverage
  • Best/worst setups identified
  • Suggested rules

Analyze Specific Filters:

python3 {baseDir}/scripts/analyze.py --symbol BTCUSDT
python3 {baseDir}/scripts/analyze.py --direction LONG
python3 {baseDir}/scripts/analyze.py --min-trades 10

๐Ÿง  Generate Rules

Extract actionable rules from your trade history:

python3 {baseDir}/scripts/generate_rules.py

This analyzes patterns and outputs rules like:

๐Ÿšซ AVOID: LONG when RSI > 70 (win rate: 23%, n=13)
โœ… PREFER: SHORT on Mondays (win rate: 78%, n=9)
โš ๏ธ CAUTION: Trades with leverage > 10x (win rate: 35%, n=20)

๐Ÿ“ˆ Auto-Update Memory

Apply learned rules to agent memory:

python3 {baseDir}/scripts/update_memory.py --memory-path /path/to/MEMORY.md

This appends a "## ๐Ÿง  Learned Rules" section with data-driven insights.

Dry Run (preview changes):

python3 {baseDir}/scripts/update_memory.py --memory-path /path/to/MEMORY.md --dry-run

๐Ÿ“‹ View Trade History

python3 {baseDir}/scripts/log_trade.py --list
python3 {baseDir}/scripts/log_trade.py --list --last 10
python3 {baseDir}/scripts/log_trade.py --stats

๐Ÿ”„ Weekly Review

Run weekly to see progress:

python3 {baseDir}/scripts/weekly_review.py

Generates:

  • This week's performance vs last week
  • New patterns discovered
  • Rules that worked/failed
  • Recommendations for next week

๐Ÿ“ Data Storage

Trades are stored in {baseDir}/data/trades.json:

{
  "trades": [
    {
      "id": "uuid",
      "timestamp": "2026-02-02T13:00:00Z",
      "symbol": "BTCUSDT",
      "direction": "LONG",
      "entry": 78000,
      "exit": 79500,
      "pnl_percent": 1.92,
      "result": "WIN",
      "indicators": {...},
      "market_context": {...}
    }
  ]
}

๐ŸŽฏ Best Practices

  1. Log EVERY trade - Wins AND losses
  2. Be honest - Don't skip bad trades
  3. Add context - More data = better patterns
  4. Review weekly - Patterns emerge over time
  5. Trust the data - If data says avoid something, AVOID IT

๐Ÿ”— Integration with tess-cripto

Add to tess-cripto's workflow:

  1. Before trade: Check rules in MEMORY.md
  2. After trade: Log with full context
  3. Weekly: Run analysis and update memory

Skill by Total Easy Software - Learn from every trade ๐Ÿง ๐Ÿ“ˆ

Top skills in this category

Polymarket Arbitrage

@johny0920

Monitor and execute arbitrage opportunities on Polymarket prediction markets. Detects math arbitrage (multi-outcome probability mismatches), cross-market arbitrage (same event different prices), and orderbook inefficiencies. Use when user wants to find or trade Polymarket arbitrage, monitor prediction markets for opportunities, or implement automated trading strategies. Includes risk management, P&L tracking, and alerting.

135.0k

Expense Tracker Pro

@jhillin8

Track expenses via natural language, get spending summaries, set budgets

74.7k

Lawyer

@ivangdavila

Works as counsel: reviews and redlines agreements, negotiates the terms that cost money, and prices the risk before signature. Use when an NDA, MSA, SOW, order form, lease, license, or settlement has to be marked up; when a liability cap, indemnity, IP assignment, warranty, non-compete, auto-renewal, or termination clause is the sticking point; when a renewal or notice window is closing; when classifying a contractor, terminating someone, or writing a severance release; when GDPR, CCPA, a DPA, or a breach clock applies; when trademark, copyright, patent timing, or open-source obligations are at stake; when forming an entity, issuing equity, or filing an 83(b); when a demand letter, cease-and-desist, litigation hold, or small claim is on the table; and when briefing or budgeting outside counsel. Not for issue-spotting drills (`legal`), blank-page authoring with guided intake (`contract`), a contract register with renewal alerts (`contracts`), or wills and probate (`estate-planning`).

53.3k

Self-Improving + Proactive Agent

@ivangdavila

Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...

1.3k206k

ontology

@oswalpalash

Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linkin...

654195k