360 Secure SkillHub
360 安全技能中心

Quant Strategy Bundle

该 Skill 以说明文档形式提供 A 股量化策略组合,包含动量、反转、趋势三类策略框架,列出各自原理、持仓周期与适用市场,并给出依赖安装、策略初始化、信号生成与回测的示例调用方式;配置项涉及 Tushare token、股票池、因子参数与交易参数。材料中未包含策略实现代码与配置文件。

jason-aka-chen
jason-aka-chen
热度 46.69
最近更新 2026-05-11 17:34:59
分类:数据依赖:代码执行 / 第三方 API应用场景:财务 / 市场分析 / 数据处理 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add quant-strategy-bundle-chen
Metadata
name
quant-strategy-bundle
description
Quantitative trading strategy bundle - Contains multiple verified A-stock quantitative trading strategy frameworks. Includes momentum strategies, reversal strategies, and trend strategies, with backtesting and signal generation support. Ideal for quantitative trading beginners and strategy development reference.
tags
["quant","trading","stock","strategy","backtest"]
version
1.0.0
author
chenq

quant-strategy-bundle

Quantitative trading strategy bundle with multiple verified strategy frameworks.

Included Strategies

1. Momentum Strategy

  • Principle: Buy stocks that have risen in the past
  • Holding period: 5-20 days
  • Best for: Bull markets

2. Reversal Strategy

  • Principle: Buy stocks that have fallen in the past
  • Holding period: 3-10 days
  • Best for: Range-bound markets

3. Trend Strategy

  • Principle: Follow the trend, buy high sell higher
  • Holding period: 10-30 days
  • Best for: Strong trending markets

Usage

Install Dependencies

pip install pandas numpy xgboost tushare

Basic Usage

from strategy import MomentumStrategy, ReversalStrategy, TrendStrategy

# Initialize strategy
strategy = MomentumStrategy()

# Generate signals
signals = strategy.generate_signals(stock_pool, factors)

# Backtest
result = strategy.backtest(signals, prices)

Configuration

Configure in config.json:

  • Tushare token
  • Stock pool
  • Factor parameters
  • Trading parameters

Changelog

v1.0.0 - Initial release