skills$openclaw/crypto-self-learning
totaleasy7.5kā˜…

by totaleasy

crypto-self-learning – OpenClaw Skill

crypto-self-learning is an OpenClaw Skills integration for data analytics workflows. 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 trades, analyze performance, identify what works/fails, and continuously improve trading accuracy.

7.5k stars4.9k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026data analytics

Skill Snapshot

namecrypto-self-learning
descriptionSelf-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 trades, analyze performance, identify what works/fails, and continuously improve trading accuracy. OpenClaw Skills integration.
ownertotaleasy
repositorytotaleasy/crypto-self-learning
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @totaleasy/crypto-self-learning
last updatedFeb 7, 2026

Maintainer

totaleasy

totaleasy

Maintains crypto-self-learning in the OpenClaw Skills directory.

View GitHub profile
File Explorer
9 files
.
data
trades.json
766 B
scripts
analyze.py
8.1 KB
generate_rules.py
8.0 KB
log_trade.py
5.6 KB
update_memory.py
4.1 KB
_meta.json
295 B
SKILL.md
4.4 KB
SKILL.md

name: crypto-self-learning description: 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 trades, analyze performance, identify what works/fails, and continuously improve trading accuracy. metadata: {"openclaw":{"emoji":"🧠","requires":{"bins":["jq","python3"]}}}

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"
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 šŸ§ šŸ“ˆ

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install crypto-self-learning?

Run openclaw add @totaleasy/crypto-self-learning in your terminal. This installs crypto-self-learning into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/totaleasy/crypto-self-learning. Review commits and README documentation before installing.