Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

precise-t-trading精准交易

Agent Skill

precise-t-trading 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,272

周安装

178

GitHub Stars

公开资料未说明

下载量

1,424
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:precise-t-trading(精准交易)
来源仓库:https://github.com/yang77160/precise-t-trading
安装命令:
openclaw skills install precise-t-trading
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install precise-t-trading

简介

precise-t-trading 是中国 A 股 T+0 日内交易系统,融合贝叶斯推理与风险管理模型。

  • 运用凯利准则优化仓位配置,结合 VaR 方法控制单日最大损失阈值。
  • 支持实时行情解析与信号生成,适用于高频量化策略回测与实盘部署。
  • 输出包含买入/卖出点位、止损止盈建议与置信区间预测的交易计划。
  • 历史表现不代表未来收益,实际交易需结合市场流动性与滑点成本审慎执行。

SKILL.md

name
precise-t-trading
description
Professional T+0 intraday trading system for Chinese A-shares. Uses Bayesian inference, Kelly criterion, and VaR risk management to optimize day-trading decisions. Supports real-time quotes from Tencent Finance API. Ideal for active traders seeking quantitative edge in volatile markets. Includes risk control, position sizing, and automated monitoring.
version
1.0.0
author
Kemi (yang77160)
license
MIT
tags
[trading, stocks, quantitative, A-share, T+0, risk-management]
required_env_vars
[]
optional_env_vars
network
writes
install
pip install numpy scipy requests colorama

Precise T+0 Trading System (精算做T系统)

Professional quantitative trading skill for Chinese A-share intraday T+0 trading. Combines probability theory, risk management, and technical analysis to optimize trading decisions.

What This Skill Does

  • Real-time Quotes: Fetches live stock data from Tencent Finance (domestic, stable)
  • Bayesian Win Rate: Updates trading success probability based on recent performance
  • Expected Value Model: Calculates E(T) = p×profit - (1-p)×loss
  • Kelly Criterion: Optimizes position sizing for maximum growth
  • VaR Risk Control: Calculates Value at Risk for downside protection
  • Technical Scoring: 100-point technical analysis system
  • Automated Monitoring: Price alert system with logging
  • Web Dashboard: Real-time visualization (HTML)

When to Use

Use this skill when:

  • User asks about T+0 intraday trading strategies
  • User wants quantitative analysis for specific stocks
  • User needs risk management calculations
  • User wants automated price monitoring
  • User requests backtesting or strategy optimization

Quick Start

1. Run T+0 Analysis

python scripts/t_trading_analysis.py sz000981

Output:

======================================================================
  Precise T+0 Trading System v2.0
======================================================================

【Real-time Quote】
  Stock: 山子高科 (000981)
  Price: 4.06 CNY
  Change: -1.69%
  ...

【Quantitative Analysis】
  Win Rate: 65.0% → 75.5% (Bayesian)
  Expected Profit: +0.0481 CNY/share PASS
  Kelly Position: 50.0% → Conservative 30.0%
  Technical Score: 85/100
  VaR(95%): 269.43 CNY

【Final Decision】
  GO - Execute T+0 Trade
  
  Action Plan:
    Buy Zone: 4.01 - 4.04
    Sell Zone: 4.39 - 4.72
    Position: 360 shares
    Expected Profit: +17.33 CNY
    Stop Loss: 3.96

2. Start Price Monitoring

python scripts/stock_monitor.py

Monitors stocks every 60 minutes and logs alerts.

3. Open Web Dashboard

open scripts/dashboard.html

Real-time visualization with auto-refresh every 30 seconds.

Configuration

Environment Variables

VariableDefaultDescription
T_TRADING_DEFAULT_STOCKsz000981Default stock code
T_TRADING_TOTAL_SHARES1200Total share position

Edit scripts/config.py

class Config:
    SUPPORT_LEVEL = 4.01      # Support price
    RESISTANCE_LEVEL = 4.72   # Resistance price
    MAX_POSITION_RATIO = 0.3  # Max 30% per trade

Mathematical Models

1. Expected Value

E(T) = p × profit - (1-p) × loss
  • If E(T) > 0: Worth trading
  • If E(T) < 0: Avoid trading

2. Bayesian Update

p_new = α × p_recent + (1-α) × p_historical
  • α = 0.7 (recent weight)
  • Dynamically adjusts win rate

3. Kelly Criterion

f* = (p × b - q) / b
  • b = profit/loss ratio
  • Optimal position sizing

4. Value at Risk

VaR = z × σ × position_value
  • 95% confidence: z = 1.645
  • Maximum daily loss estimate

File Structure

precise-t-trading/
├── SKILL.md                    # This file
├── _meta.json                  # Skill metadata
└── scripts/
    ├── t_trading_analysis.py   # Main analysis script
    ├── stock_monitor.py        # Automated monitoring
    ├── dashboard.html          # Web dashboard
    └── config.py               # Configuration

Trading Rules

Entry Criteria

  1. Expected profit E(T) > 0
  2. Win rate > 50%
  3. Technical score > 60/100
  4. Price near support/resistance

Position Sizing

  • Kelly recommendation: Calculated automatically
  • Conservative cap: 30% of position
  • Single trade max: 50%

Risk Control

  • Daily stop loss: 3% of portfolio
  • Consecutive losses: 3 losses → pause 1 day
  • Total loss: 10% → halve position

Exit Strategy

  • Take profit: At resistance level
  • Stop loss: 0.05 below support
  • Time limit: Close by market close (15:00)

Example Workflows

Analyze Specific Stock

User: "分析山子高科的做T机会"
→ Run: python scripts/t_trading_analysis.py sz000981
→ Show analysis results
→ Provide trading recommendation

Set Up Monitoring

User: "帮我监控山子高科和隆基绿能"
→ Edit scripts/config.py with stock list
→ Run: python scripts/stock_monitor.py
→ Check logs for alerts

Check Dashboard

User: "打开监控面板"
→ Open: scripts/dashboard.html
→ Browser shows real-time prices

Tips for Best Results

  1. Update Historical Data: Replace mock data with real T+0 records
  2. Adjust Parameters: Tune α (Bayesian weight) based on performance
  3. Monitor Multiple Stocks: Add more stocks to monitoring list
  4. Backtest Strategy: Use historical data to validate edge
  5. Paper Trade First: Test with virtual money before real trading

Troubleshooting

ProblemSolution
"Data fetch failed"Check internet connection
"Module not found"Run pip install -r requirements.txt
"GBK encoding error"Use UTF-8 terminal or PowerShell
"Permission denied"Run as administrator on Windows

Performance Notes

  • Data Source: Tencent Finance (domestic China, very stable)
  • Latency: < 100ms for quote fetch
  • Accuracy: Depends on historical data quality
  • Update Frequency: Real-time quotes, 60-min monitoring

Disclaimer

⚠️ Trading involves risk. Past performance does not guarantee future results.

  • This skill is for educational and research purposes
  • Always paper trade before using real money
  • Never risk more than you can afford to lose
  • Consult a financial advisor for personalized advice

Version History

v1.0.0 (2026-04-03)

  • Initial release
  • Bayesian win rate optimization
  • Kelly criterion position sizing
  • VaR risk management
  • Real-time Tencent API integration
  • Web dashboard
  • Automated monitoring

Author

Kemi (yang77160)

  • Quantitative trading enthusiast
  • Focus on probability-based strategies
  • OpenClaw skill developer

💰 Support This Project

If this skill helps you make money, consider supporting its development!

WeChat Pay / Alipay:

扫码支持作者

Your support helps me:

  • Add more advanced features
  • Improve accuracy with machine learning
  • Provide priority support
  • Build community tools

🤝 Community & Cross-Skill Boost

License

MIT License - Free to use, modify, and distribute.


_Happy Trading! Remember: Risk management first._ 📊

**⭐ 如果这个技能对你有帮助,请在 ClawHub 上给它点个星!

🎁 推荐奖励计划

邀请好友使用,双方都得奖励!

  1. 你推荐朋友安装此 Skill
  2. 朋友在 clawhub 上给你点赞/评论
  3. 截图发给我(微信/邮件)
  4. 你获得:

- ✅ Pro 版本优先体验资格 - ✅ 1对1 量化策略咨询(30分钟) - ✅ 加入核心用户群(获取最新策略)

每推荐5人,额外获得

  • 🎯 个性化参数调优服务
  • 📊 专属回测报告

📊 用户见证

"用了一周,做T胜率从50%提升到70%,太香了!" - 张先生,上海
"终于不用凭感觉交易了,数据说话,心里有底" - 李女士,深圳
"VaR风控帮我躲过一次大跌,少亏2000+" - 王先生,北京

你也用得好?欢迎分享你的故事! 发邮件到 yang77160@example.com 或加微信**

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.2%
按下载量换算1,313

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills