V22.1 · 550+ Lines · Python

QQQ/TQQQ 双核量化策略

Dual-Core Quantitative Strategy

6种市场状态自动识别,智能配置QQQ/TQQQ仓位,MA200+MA20双均线趋势判断
6 market states auto-detected, smart QQQ/TQQQ allocation with dual moving average system

今天是哪种状态?该持什么?

同一条策略在站内叫「高位逃顶」,每个交易日收盘后推送给订阅者

Listed on our site as “Top-Escape” — subscribers get today's state and position after every close

QQQ/TQQQ V22.1 策略回测 2017.1-2026.4 — Moomoo平台

V22.1 策略回测(2017年1月 — 2026年4月)· Backtest on Moomoo platform (Jan 2017 — Apr 2026)

🎁 免费领取完整代码 Get Free Code

已有 1,146 人领取过我们的免费策略代码 · 完全免费 · 邮箱即发

1,146 people have claimed our free strategy code · Free · sent by email

6种市场状态 自动识别

6 Market States · Auto-Detected

常态双核Normal Dual-Core
QQQ 45%
TQQQ 45%
Cash 10%

QQQ站上MA200,趋势健康

QQQ above MA200, healthy trend

熊市空仓Bear — Cash
Cash 100%

QQQ跌破MA200,全仓现金避险

QQQ below MA200, full cash protection

拉锯进攻Battle — Attack
TQQQ 99%

MA200附近震荡,短期突破信号

Oscillating near MA200, short-term breakout

拉锯防守Battle — Defend
QQQ 90%
Cash 10%

MA200附近震荡,短期回落防守

Oscillating near MA200, defensive positioning

绝望深坑Despair — TQQQ
TQQQ 99%

ATH回撤超30%,极端超跌反弹

ATH drawdown >30%, extreme oversold rebound

逃顶减仓Top Escape
QQQ 90%
Cash 10%

ATH附近放量异常,逃顶信号

Abnormal volume near ATH, top escape signal

核心特性 Core Features

6 key features built into the strategy code

📊

MA200+MA20 双均线

Dual Moving Average

MA200判断长期趋势方向,MA20捕捉短期动量变化

MA200 for long-term trend, MA20 for short-term momentum

🛡️

Anti-V 反转过滤

Anti-V Reversal Filter

识别V型反转假突破,避免追高被套

Detect V-shaped false breakouts, avoid chasing tops

⏱️

T+1 先卖后买

T+1 Sell-First Mechanism

当日先卖出旧仓位,次日再买入新仓位,避免资金不足

Sell today, buy tomorrow — prevents insufficient funds

🔺

ATH追踪 + 放量逃顶

ATH Tracking + Volume Escape

实时追踪历史高点,配合成交量异常放大触发逃顶

Track all-time highs, volume spike triggers top escape

🔒

禁止融资保护

No Margin Protection

代码内置禁止融资交易,确保本金安全

Built-in margin trading prohibition for capital safety

📋

未完成订单检测

Open Order Detection

检测未成交订单,避免重复下单造成超额持仓

Detect unfilled orders, prevent duplicate positions

策略运作流程 How It Works

Fully automated, runs daily after market close

01

获取数据

Fetch Data

每日收盘后自动获取QQQ/TQQQ价格、均线、成交量

Auto-fetch prices, MAs, volume after market close

02

计算指标

Compute Indicators

计算MA200、MA20、量比、ATH回撤等核心指标

Calculate MA200, MA20, volume ratio, ATH drawdown

03

状态判断

State Detection

状态机自动识别当前属于6种市场状态中的哪一种

State machine identifies which of 6 market states applies

04

执行调仓

Execute Rebalance

根据目标仓位自动下单,T+1先卖后买,安全执行

Auto-execute orders based on target, T+1 sell-first

适用平台 Platform

富途牛牛 / Moomoo
量化策略平台 Algo Trading
Python
550+ 行完整代码
一键导入
Copy & Paste, Ready to Run

代码可直接复制到富途牛牛/Moomoo量化策略平台使用,无需额外配置。支持美股市场QQQ和TQQQ的自动化交易。

观看安装教程 Watch Setup Tutorial

立即获取 完整策略代码

填写邮箱,V22.1完整版代码即刻发送到您的邮箱
Enter your email to receive the complete V22.1 strategy code instantly

🎁 免费领取完整代码 Get Free Code

已有 1,146 人领取过我们的免费策略代码 · 完全免费 · 邮箱即发

1,146 people have claimed our free strategy code · Free · sent by email