trading-strategist
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTrading Strategies Skill
交易策略Skill
This skill generates data-driven trading strategies for cryptocurrencies by integrating multiple data sources and analytical tools.
本Skill通过整合多数据源和分析工具,生成基于数据驱动的加密货币交易策略。
Core Components
核心组件
- Binance Market Data: Real-time price, volume, and historical klines from Binance API
- Technical Analysis (TA): Calculated indicators including SMA, RSI, MACD, Bollinger Bands, Stochastic, and more
- Market Sentiment: Aggregated sentiment scores from popular crypto RSS feeds
- Binance市场数据:来自Binance API的实时价格、交易量及历史K线数据
- 技术分析(TA):计算得出的指标包括SMA、RSI、MACD、布林带、随机指标等
- 市场情绪:来自热门加密货币RSS新闻源的聚合情绪评分
Workflow
工作流程
Step 1: Data Collection
步骤1:数据收集
- Fetch current ticker data from Binance API (and
/api/v3/ticker/price)/api/v3/ticker/24hr - Retrieve historical klines (with 30-100 days of data)
/api/v3/klines - Aggregate sentiment using the market-sentiment skill
- 从Binance API获取当前行情数据(和
/api/v3/ticker/price)/api/v3/ticker/24hr - 获取历史K线数据(,包含30-100天的数据)
/api/v3/klines - 使用market-sentiment skill聚合情绪数据
Step 2: TA Calculation
步骤2:TA指标计算
Use the script to compute indicators from historical data.
scripts/calculate_ta.py使用脚本基于历史数据计算指标。
scripts/calculate_ta.pyStep 3: Strategy Generation
步骤3:策略生成
Combine TA signals, price action, and sentiment score to recommend:
- Buy/Sell/Hold signals
- Entry/exit points
- Risk management (stop-loss, position sizing)
- Timeframes (swing, day trading)
结合TA信号、价格走势和情绪评分,提供以下建议:
- 买入/卖出/持有信号
- 入场/离场点位
- 风险管理(止损、仓位配置)
- 时间框架(波段交易、日内交易)
Usage Examples
使用示例
Basic Strategy Request
基础策略请求
For ETH, generate a trading strategy based on current market data.→ Fetch ETH data, calculate TA, get sentiment, output strategy.
For ETH, generate a trading strategy based on current market data.→ 获取ETH数据,计算TA指标,获取情绪数据,输出策略。
Advanced Analysis
进阶分析
Analyze BTC with 50-day history, include sentiment, recommend swing trade.→ Use longer history, focus on swing signals.
Analyze BTC with 50-day history, include sentiment, recommend swing trade.→ 使用更长周期的历史数据,聚焦波段交易信号。
Risk Management
风险管理
- Always include stop-loss recommendations
- Suggest position sizes (1-5% of capital)
- Warn about volatility and leverage risks
- Note: Not financial advice
- 始终包含止损建议
- 建议仓位规模(资金的1-5%)
- 提醒波动和杠杆风险
- 注意:本内容不构成财务建议
References
参考资料
- TA formulas: See references/ta_formulas.md
- Sentiment interpretation: See references/sentiment_guide.md
- TA公式:参见references/ta_formulas.md
- 情绪解读:参见references/sentiment_guide.md
Scripts
脚本
- : Python script for TA indicator calculations
scripts/calculate_ta.py - : Helper for Binance API calls</content> <parameter name="filePath">./skills/trading-strategies/SKILL.md
scripts/fetch_binance.py
- :用于计算TA指标的Python脚本
scripts/calculate_ta.py - :Binance API调用辅助脚本
scripts/fetch_binance.py