AI-Powered EA Development Framework for MetaTrader 5 - Claude Code Edition (New Architecture)
npm install @kwasati/strategylab


███████╗████████╗██████╗ █████╗ ████████╗███████╗ ██████╗██╗ ██╗ ██╗ █████╗ ██████╗
██╔════╝╚══██╔══╝██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██╔════╝╚██╗ ██╔╝ ██║ ██╔══██╗██╔══██╗
███████╗ ██║ ██████╔╝███████║ ██║ █████╗ ██║ ███╗╚████╔╝ ██║ ███████║██████╔╝
╚════██║ ██║ ██╔══██╗██╔══██║ ██║ ██╔══╝ ██║ ██║ ╚██╔╝ ██║ ██╔══██║██╔══██╗
███████║ ██║ ██║ ██║██║ ██║ ██║ ███████╗╚██████╔╝ ██║ ███████╗██║ ██║██████╔╝
╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═════╝
ᴇxᴘᴇʀᴛ ᴀᴅᴠɪsᴏʀ ғᴀᴄᴛᴏʀʏ
BREAKING CHANGE: StrategyLab v1.1.0 introduces a new architecture that separates framework files from user data:
- Framework Files: ~/.claude/StrategyLab/ (read-only)
- User Data: ~/StrategyLab/ (your files)
This change ensures clean uninstallation, easier updates, and better data protection.
StrategyLab Framework เป็นเครื่องมือสำหรับพัฒนา Expert Advisor (EA) บน MetaTrader 5 ด้วยพลังของ AI จาก Claude Code ช่วยให้คุณสร้าง trading strategies ได้อย่างง่ายดายผ่านการสนทนาภาษาธรรมชาติ
npm install -g @kwasati/strategylab--lang THbash
npm install -g @kwasati/strategylab
`$3
The installer will automatically:
1. Detect your existing installation
2. Prompt for migration
3. Back up your data
4. Move framework files to new location
5. Keep your user data in place📁 New Directory Structure
$3
`
~/.claude/StrategyLab/
├── scripts/ # All Python scripts
├── knowledge/ # Trading knowledge base
├── config/ # Configuration files
└── templates/ # EA templates and Core modules
`$3
`
~/StrategyLab/
├── ideas/ # Your strategy ideas
│ ├── current/
│ ├── used/
│ └── archived/
├── planning/ # Your strategy plans
│ ├── ready/
│ ├── used/
│ └── archived/
├── strategies/ # Generated EAs
└── notes/ # Your notes
├── active/
├── archived/
└── exports/
`🛠️ Core Commands
$3
`bash
/strategylab # Main command
/ea:help # Show help
/ea:idea # Generate ideas
/ea:plan # Create plans
/ea:create # Generate EA
/ea:note # Manage notes
`$3
`bash
sl idea # Generate trading ideas
sl plan # Manage strategy plans
sl create # Create EA from plan
sl note # Manage notes
`$3
- --lang TH|EN - เลือกภาษา (ไทย/อังกฤษ)
- --think - วิเคราะห์แบบละเอียด (4K tokens)
- --think-hard - วิเคราะห์แบบลึกมาก (10K tokens)
- --mt4/--mt5 - เลือก platform (default: MT5)📋 Requirements
- Python 3.8+
- Claude Code CLI
- MetaTrader 5
- 4GB RAM minimum
- 100MB disk space
🔄 Upgrading from v1.0.x
$3
1. Backup: Creates timestamped backup of your current installation
2. Move Framework: Moves scripts, knowledge, config, templates to
~/.claude/StrategyLab/
3. Preserve User Data: Keeps your ideas, plans, strategies, notes in ~/StrategyLab/
4. Update Paths: All scripts updated to use new paths
5. Validate: Checks that everything works correctly$3
- Automatic Backup: Before any changes
- Dry Run Option: Preview changes without making them
- Rollback: Can restore from backup if needed
- Zero Data Loss: All your work is preserved
🐛 Troubleshooting
$3
If migration fails:
`bash
List available backups
sl migrate --list-backupsRestore from backup
sl migrate --restore [backup_path]
`$3
If you get permission errors:
`bash
Check permissions
ls -la ~/.claude/Fix permissions if needed
chmod 755 ~/.claude
`$3
After installation:
1. Restart Claude Code
2. Check that
/strategylab command is available
3. Try /ea:help` to verify installation- Installation Guide
- Command Reference
- Architecture Design
- Migration Guide
We welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE file for details.
- Claude AI by Anthropic for powering the intelligence
- MetaTrader 5 community for trading insights
- All contributors and users of StrategyLab
---
Note: This is a breaking change from v1.0.x. Please ensure you have backups before upgrading.