OpenClaw Trading Assistant - Technical Analysis & Trading Signals
Project description
๐ OpenClaw Trading Assistant
Version: v1.3.1 (2026-03-25)
Author: OpenClaw Community
License: MIT
๐ Docs Website โข Features โข Installation โข Usage
๐ Language / ่ฏญ่จ
๐ Introduction
OpenClaw Trading Assistant is a complete trading decision support system that provides technical analysis, trading signals, position management, and risk monitoring.
โจ Key Features
- ๐ Support & Resistance Levels - Automatic calculation with multiple algorithms
- ๐ Trading Signals - Multi-indicator analysis (RSI, MACD, Moving Averages)
- ๐ฐ Position Calculator - Risk-based position sizing
- ๐ฏ Stop Loss & Take Profit - Price alerts and trigger detection
- โ ๏ธ Risk Management - Risk/Reward ratio, potential profit/loss
- ๐ Notifications - Feishu, DingTalk, Email (configurable)
๐ฏ Perfect For
- Stock/ETF investors
- Technical analysis enthusiasts
- Quantitative trading beginners
- OpenClaw users
โจ Features
1. Support & Resistance Levels
- Automatic calculation of key price levels
- Multiple algorithms: Previous High/Low, Moving Averages, Fibonacci, Pivot Points
- Strength indicator (strong/medium/weak)
Example Output:
NVDA Current Price: $175.64
Resistance: $177.26 (+0.9%), $180.00 (+2.5%)
Support: $175.00 (-0.4%), $171.72 (-2.2%)
2. Trading Signals
- Multi-indicator analysis (RSI, MACD, Moving Averages)
- Combined signal scoring
- Recommendations: Strong Buy / Buy / Hold / Sell / Strong Sell
Example Output:
RSI: 52.34 [Neutral]
MACD: 0.1234 [Bullish]
Moving Averages: [Bullish]
Combined: Bullish (score: 3)
Recommendation: BUY (Confidence: Medium)
3. Position Calculator
- Risk-based position sizing
- Risk profiles: Conservative / Moderate / Aggressive
- Confidence adjustment
- Stop-loss calculation
- Portfolio allocation
Example Output:
Total Capital: $100,000
Entry Price: $175.64
Stop Loss: $165.00
Risk Profile: Moderate
Position: 562 shares ($98,710, 98.7%)
Risk: $5,964 (5.96%)
Risk/Reward: 1:2.0
๐ ๏ธ Installation
๐ Complete guides: https://xuxuclassmate.github.io/trading-assistant/guides/install-overview/
Quick Comparison
| Method | Command | Time |
|---|---|---|
| Docker โญ | docker run -it ghcr.io/xuxuclassmate/trading-assistant:latest |
5 min |
| pip | pip install openclaw-trading-assistant |
10 min |
| npm | npm install -g @xuxuclassmate/openclaw-trading-assistant |
10 min |
| Source | git clone + pip install -e . |
15 min |
Prerequisites
๐ณ Docker Installation (Recommended)
Pull from GitHub Container Registry:
docker pull ghcr.io/xuxuclassmate/trading-assistant:latest
Pull from Docker Hub:
docker pull xuxuclassmate/trading-assistant:latest
Quick Start:
# Create config directory
mkdir -p trading-assistant-config
cd trading-assistant-config
# Download example config
curl -O https://raw.githubusercontent.com/XuXuClassMate/trading-assistant/main/.env.example
cp .env.example .env
# Edit .env with your API keys
nano .env # or use your favorite editor
# Run the container
docker run --rm -it \
-v $(pwd)/.env:/app/.env \
-v $(pwd)/watchlist.txt:/app/watchlist.txt \
ghcr.io/xuxuclassmate/trading-assistant:latest \
--help
Available Images:
ghcr.io/xuxuclassmate/trading-assistant:1.2.0- Specific versionghcr.io/xuxuclassmate/trading-assistant:latest- Latest stablexuxuclassmate/trading-assistant:1.2.0- Docker Hub (versioned)xuxuclassmate/trading-assistant:latest- Docker Hub (latest)
Supported Platforms: linux/amd64, linux/arm64
๐ฅ๏ธ CLI Usage
๐ Quick Start
# Start interactive mode (short & sweet!)
ta
# Full name also works
openclaw-trading-assistant
๐ Available Commands
| Command | Example | Description |
|---|---|---|
ta |
ta |
Start interactive mode / ไบคไบๆจกๅผ |
ta sr |
ta sr |
Analyze support/resistance / ๅๆๆฏๆ้ปๅไฝ |
ta sig |
ta sig --symbol NVDA |
Generate signals / ็ๆไฟกๅท |
ta pos |
ta pos --symbol NVDA --price 175 --capital 10000 |
Calculate position / ่ฎก็ฎไปไฝ |
ta alerts |
ta alerts check |
Manage alerts / ็ฎก็ๆ้ |
ta all |
ta all |
Run all analysis / ่ฟ่กๆๆๅๆ |
ta v |
ta v |
Show version / ๆพ็คบ็ๆฌ |
ta h |
ta h |
Show help / ๆพ็คบๅธฎๅฉ |
๐ก Examples
Interactive Mode:
$ ta
============================================================
OpenClaw Trading Assistant CLI
Version: 1.3.0
============================================================
ta> help
ta> sig
ta> pos --symbol NVDA --price 175.64 --capital 10000
ta> exit
Direct Commands:
ta sr # Support/Resistance
ta sig # Signals for watchlist
ta sig --symbol NVDA # Signals for specific stock
ta pos --symbol NVDA --price 175.64 --capital 10000
ta alerts check
ta all # Run everything
๐ณ Docker CLI Usage
# Interactive mode in Docker
docker run --rm -it \
-v $(pwd)/.env:/app/.env \
-v $(pwd)/watchlist.txt:/app/watchlist.txt \
ghcr.io/xuxuclassmate/trading-assistant:latest
# Direct command in Docker
docker run --rm -it \
-v $(pwd)/.env:/app/.env \
-v $(pwd)/watchlist.txt:/app/watchlist.txt \
ghcr.io/xuxuclassmate/trading-assistant:latest \
ta sig
๐ Internationalization
Default Language: English (en)
Switch Language:
# Method 1: Environment Variable
export TRADING_ASSISTANT_LANG=zh_CN
# Method 2: In Code
from i18n import set_language
set_language("zh_CN")
# Method 3: Config File
# Add to config.json: {"language": "zh_CN"}
Supported Languages:
- English (
en) - Default - Chinese Simplified (
zh_CN)
โ๏ธ Configuration
Required
- API Keys - Twelve Data & Alpha Vantage
- Watchlist - Your stock list
Optional
- Notifications - Feishu, DingTalk, Email (leave empty to disable)
- Risk Profile - Conservative/Moderate/Aggressive
- Language - English/Chinese
๐ See Full Configuration Guide
๐ Usage
Basic Usage
# Support & Resistance
from support_resistance import calculate_support_resistance
result = calculate_support_resistance("NVDA")
# Trading Signals
from trading_signals import generate_trading_signal
result = generate_trading_signal("AAPL")
# Position Calculation
from position_calculator import calculate_position_size
result = calculate_position_size(
total_capital=100000,
entry_price=175.64,
stop_loss_price=165.00,
risk_profile="moderate"
)
๐ See Full Usage Guide
๐ Project Structure
trading-assistant/
โโโ config.py # Configuration
โโโ i18n.py # Internationalization
โโโ support_resistance.py # Support/Resistance (Day 1)
โโโ trading_signals.py # Trading Signals (Day 1)
โโโ position_calculator.py # Position Calculator (Day 1)
โโโ stop_loss_alerts.py # Stop Loss & Take Profit (Day 2)
โโโ locales/
โ โโโ en.json # English translations
โ โโโ zh_CN.json # Chinese translations
โโโ data/
โ โโโ alerts/ # Alert persistence (JSON)
โโโ logs/ # Log files
โโโ docs/
โ โโโ I18N.md # i18n documentation
โ โโโ CONFIGURATION.md # Configuration guide
โ โโโ PUBLISHING.md # Package publishing guide
โ โโโ V1.1.0_SUCCESS.md # v1.1.0 release summary
โโโ .github/
โ โโโ workflows/
โ โโโ publish.yml # Auto-publish workflow
โ โโโ publish-gh.yml # GitHub Packages workflow
โโโ scripts/ # Utility scripts
โโโ requirements.txt # Dependencies
โโโ pyproject.toml # Python package config
โโโ .env.example # Environment template
โโโ watchlist.txt.example # Watchlist template
โโโ LICENSE # MIT License
โโโ README.md # This file (English)
โโโ README_zh.md # Chinese version
๐งช Testing
# Test all modules
python3 support_resistance.py
python3 trading_signals.py
python3 position_calculator.py
# Run unit tests
python3 -m pytest tests/
๐ Version History
v1.1.0 (2026-03-24) - Stop Loss & Take Profit Alerts
New Features:
- โ Stop Loss & Take Profit alert system
- โ Automatic price trigger detection
- โ Risk/Reward ratio calculation
- โ Potential profit/loss estimation
- โ JSON-based alert persistence
- โ Detailed logging
Files Added:
stop_loss_alerts.py- Alert management moduledata/alerts/- Alert data storagelogs/- Log file directory
Usage Example:
from stop_loss_alerts import StopLossAlert, calculate_stop_loss_levels
# Calculate levels
levels = calculate_stop_loss_levels(
entry_price=175.64,
stop_loss_percent=5.0,
take_profit_percent=10.0
)
# Create alert
alert = StopLossAlert("NVDA", 175.64)
alert.create_alert(
entry_price=175.64,
stop_loss_price=levels['stop_loss_price'],
take_profit_price=levels['take_profit_price'],
shares=100
)
v1.0.0 (2026-03-24) - Initial Release
Features:
- โ Support & Resistance calculation
- โ Trading signal generation (RSI, MACD, MA)
- โ Position size calculator
- โ Multi-language support (EN/ZH)
- โ Configurable notifications
- โ Portfolio allocation
โ ๏ธ Disclaimer
This software is for educational and research purposes only. It does not constitute investment advice.
- Trading involves substantial risk
- Past performance does not guarantee future results
- Users should make independent decisions and bear their own risks
- The developers are not liable for any investment losses
๐ค Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
๐ Documentation
- ๐ README_CLAWHUB.md - Detailed guide
- ๐ docs/I18N.md - Internationalization guide
- โ๏ธ docs/CONFIGURATION.md - Configuration guide
- ๐ CHANGELOG.md - Version history
- โ FAQ.md - Frequently asked questions
๐ Acknowledgments
Thanks to these open-source projects:
- OpenClaw - AI assistant framework
- Twelve Data - Financial market data API
- Alpha Vantage - Stock/Forex data API
- ClawHub - OpenClaw skills community
๐ฌ Contact
- GitHub: https://github.com/XuXuClassMate/trading-assistant
- Issues: https://github.com/XuXuClassMate/trading-assistant/issues
- ClawHub: https://clawhub.com
Made with โค๏ธ by OpenClaw Community
๐ Documentation โข ๐ Report Issue โข โญ Star Project
Last Updated: 2026-03-24 14:05 UTC
Version: v1.1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openclaw_trading_assistant-1.3.1.tar.gz.
File metadata
- Download URL: openclaw_trading_assistant-1.3.1.tar.gz
- Upload date:
- Size: 33.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
528f69d445516982647e83587aa51eaac4945c4435fee920669e8c69a2aaae94
|
|
| MD5 |
a4d035c26f25ec4aa8dfae17d17d0406
|
|
| BLAKE2b-256 |
aa63ae3148e085516242a46388240cabb2bd602cc7c574e51dedfee89bff0f5e
|
File details
Details for the file openclaw_trading_assistant-1.3.1-py3-none-any.whl.
File metadata
- Download URL: openclaw_trading_assistant-1.3.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
877e8d0ccf0c0356cbc215fde110310c9b5618dcff34e1d45fb07c8278bd7ede
|
|
| MD5 |
3831f03314528e98f069e17d8bb204a3
|
|
| BLAKE2b-256 |
e539cd2cb05d26d9694e841e3d0bba8556f5db8527de9e93c896d581040e5d26
|