Install
openclaw skills install chartsGenerate 90-day candlestick charts with SMA 20/50, RSI, Fibonacci retracements, and pattern detection for BTC, ETH, XRP, SUI, Gold, and Silver.
openclaw skills install chartsGenerate professional technical analysis charts with candlesticks, Fibonacci retracement, moving averages (SMA 20/50), RSI, and pattern detection. Uses the local crypto_charts.py module.
Generates charts for all 6 tracked assets: BTC, ETH, XRP, SUI, Gold, Silver. Warning: Takes 2-3 minutes due to API rate limits between requests.
cd ~/clawd && python3 -c "
import json
from crypto_charts import generate_all_charts, cleanup_old_charts
cleanup_old_charts()
report = generate_all_charts(output_dir=os.path.expanduser('~/clawd/charts'))
print(json.dumps(report, indent=2, default=str))
" 2>&1
Charts saved to: ~/clawd/charts/chart_btc.png, chart_eth.png, etc.
For a quick single-asset chart without waiting for the full suite:
cd ~/clawd && python3 -c "
import os, json
from crypto_charts import (
fetch_yfinance, fetch_ohlc, fetch_market_data,
calc_moving_averages, calc_rsi, calc_fibonacci,
detect_patterns, generate_chart, COINS
)
coin_id = 'COIN_ID' # bitcoin, ethereum, ripple, sui, gold, silver
info = COINS[coin_id]
# Fetch data (Yahoo Finance first, CoinGecko fallback)
df = fetch_yfinance(coin_id)
if df is None or len(df) < 10:
df = fetch_ohlc(coin_id)
if df is None or len(df) < 10:
df = fetch_market_data(coin_id)
if df is not None and len(df) >= 5:
df = calc_moving_averages(df)
df = calc_rsi(df)
fib = calc_fibonacci(df)
patterns = detect_patterns(df)
chart_path = os.path.expanduser(f'~/clawd/charts/chart_{info[\"symbol\"].lower()}.png')
generate_chart(coin_id, df, fib, chart_path)
print(f'Chart: {chart_path}')
print(f'Price: \${df[\"close\"].iloc[-1]:,.2f}')
print(f'RSI: {df[\"rsi\"].iloc[-1]:.1f}')
print('Patterns:')
for p in patterns:
print(f' - {p}')
else:
print('Not enough data to generate chart')
"
| coin_id | Symbol | Chart Color | Data Source |
|---|---|---|---|
| bitcoin | BTC | #F7931A | Yahoo Finance → CoinGecko |
| ethereum | ETH | #627EEA | Yahoo Finance → CoinGecko |
| ripple | XRP | #00AAE4 | Yahoo Finance → CoinGecko |
| sui | SUI | #6FBCF0 | Yahoo Finance → CoinGecko |
| gold | XAU | #FFD700 | Yahoo Finance |
| silver | XAG | #C0C0C0 | Yahoo Finance |
The module auto-detects and reports:
After generating, send the chart image using Clawdbot's native message command:
message (Telegram, target="7887978276") [attach ~/clawd/charts/chart_btc.png]
cleanup_old_charts() first to avoid disk buildup