✓ Verified 💻 Development ✓ Enhanced Data

Crypto Self Learning

Self-learning system for crypto trading.

Rating
3.8 (100 reviews)
Downloads
6,415 downloads
Version
1.0.0

Overview

Self-learning system for crypto trading.

Complete Documentation

View Source →

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:

  • Logs every trade with full context
  • Analyzes patterns in wins vs losses
  • Generates rules from real data
  • Updates memory automatically

📝 Log a Trade

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

bash
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:

bash
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:

bash
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:

bash
python3 {baseDir}/scripts/generate_rules.py

This analyzes patterns and outputs rules like:

text
🚫 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:

bash
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):

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

📋 View Trade History

bash
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:

bash
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:

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

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

🔗 Integration with tess-cripto

Add to tess-cripto's workflow:

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

Skill by Total Easy Software - Learn from every trade 🧠📈

Installation

Terminal bash

openclaw install crypto-self-learning
    
Copied!

💻Code Examples

--notes "Clean setup, followed the plan"

---notes-clean-setup-followed-the-plan.txt
### Required Fields:
| Field | Description | Example |
|-------|-------------|---------|
| `--symbol` | Trading pair | BTCUSDT |
| `--direction` | LONG or SHORT | LONG |
| `--entry` | Entry price | 78000 |
| `--exit` | Exit price | 79500 |
| `--pnl_percent` | Profit/Loss % | 1.92 or -2.5 |
| `--result` | WIN or LOSS | WIN |

### Optional but Recommended:
| Field | Description |
|-------|-------------|
| `--leverage` | Leverage used |
| `--reason` | Why you entered |
| `--indicators` | JSON with indicators at entry |
| `--market_context` | JSON with macro conditions |
| `--notes` | Post-trade observations |

## 📊 Analyze Performance

Run analysis to discover patterns:

python3 {baseDir}/scripts/analyze.py

python3-basedirscriptsanalyzepy.txt
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 --min-trades 10

python3-basedirscriptsanalyzepy---min-trades-10.txt
## 🧠 Generate Rules

Extract actionable rules from your trade history:

⚠️ CAUTION: Trades with leverage > 10x (win rate: 35%, n=20)

-caution-trades-with-leverage--10x-win-rate-35-n20.txt
## 📈 Auto-Update Memory

Apply learned rules to agent memory:

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

python3-basedirscriptsupdatememorypy---memory-path-pathtomemorymd.txt
This appends a "## 🧠 Learned Rules" section with data-driven insights.

### Dry Run (preview changes):

python3 {baseDir}/scripts/log_trade.py --stats

python3-basedirscriptslogtradepy---stats.txt
## 🔄 Weekly Review

Run weekly to see progress:

python3 {baseDir}/scripts/weekly_review.py

python3-basedirscriptsweeklyreviewpy.txt
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`:
example.sh
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"
example.sh
python3 {baseDir}/scripts/analyze.py --symbol BTCUSDT
python3 {baseDir}/scripts/analyze.py --direction LONG
python3 {baseDir}/scripts/analyze.py --min-trades 10
example.txt
🚫 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)

Tags

#coding_agents-and-ides

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author totaleasy
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install crypto-self-learning