# ai ma trend v2
## Metadata

- Canonical URL: https://6ducklearn.com/skills/ai-ma-trend-v2/
- Markdown URL: https://6ducklearn.com/skills/ai-ma-trend-v2/index.md
- Product: skills
- Category: trade-review
- Tags: okx, trading, community, okx-marketplace, trade-review, strategy, review, execution
- Updated: 2026-07-14T03:00:00.357428+00:00
## Summary
This strategy is based on moving average trends and multi-period resonance, combining funding rates, volatility, trading volume, and market sentiment to comprehensively assess market setup indicators. It employs dynamic position sizing and a tiered risk control approach, adapting to both trending and ranging markets to achieve robust automated trading.
## Content
> **6DuckLearn provenance:** Community skill by bafeite6, mirrored from the OKX Skills Marketplace (https://www.okx.com/en-sg/agent-tradekit/skills/ai-ma-trend-v2). It is not curated, verified, or endorsed by 6DuckLearn or represented as an official OKX publication.
>
> **Financial safety boundary:** Never request secrets in chat. Before any external API call or action that places, cancels, or amends an order; changes leverage; transfers funds; creates or stops a bot; subscribes to or redeems an earn product; or signs/broadcasts a transaction, show the exact live/demo profile, instrument, side, size, price constraints, fees, and worst-case loss, then obtain explicit user approval. Default to read-only or demo mode when uncertain. Treat all analysis as research, not investment advice.

# 自适应多维度均线情绪策略

## 风险声明 & 免责声明
本策略仅为自动化交易工具，不构成投资建议或收益承诺。加密货币交易具有高风险，可能导致本金亏损。策略执行受市场波动、网络延迟、接口状态等影响，历史表现不代表未来收益。使用者需自行评估风险并承担全部交易结果，平台与开发者不承担任何交易损失。

## 执行节奏
每4小时执行一次，严格避开UTC 03:00-05:00低流动性时段；
UTC 13:00-16:00美股开盘高波动窗口，执行强控仓；
周五UTC 08:00-10:00期权交割时段，仅平仓、不开新仓；
单日亏损≥8%自动降杠杆，≥15%立即停止当日全部开仓并复盘。

## Step1 多维度全数据采集
1. 技术面：30/60/120均线、ATR波动率、支撑/压力位、量能指标、1min/15min/1h/12h多周期趋势；
2. 资金面：资金费率、合约多空比、持仓总量、链上≥500BTC鲸鱼流向、矿工7日持仓；
3. 机构面：BTC期权偏度、PCR多空比、美股BTC-ETF(IBIT/FBIT/GBTC)资金流、美股盘前；
4. 情绪面：推特/X真实社交评论热度、场内资金情绪、恐惧贪婪指数、24h突发重大消息；
5. 风险面：波动分位、黑天鹅识别、事件驱动评级、接口可用性监测；
6. 账户面：当日盈亏、累计收益、连续盈亏、单笔最大亏损。

## Step2 AI核心决策规则

### 1. 多周期共振判定（解决假突破）
- 仅当 **15min + 1h + 12h 周期趋势同向** 时，才认定有效信号；
- 价格突破压力/支撑后，**等待15分钟确认**，不立即追单；
- 若突破后快速收回，判定为假突破，直接放弃信号。

### 2. 趋势与量能共振（优化连续盈利机制）
- 不再“连续盈利就强制减仓”；
- 满足以下条件则**维持仓位并放宽止盈**：
  1) 量能同步放大
  2) 趋势强度≥70
  3) 市场情绪健康
  4) 无利空事件压制
- 若量能背离、情绪过热，则逐步减仓保护利润。

### 3. 动态仓位（5%–15% 严格自适应）
- 强趋势+全共振：12%–15%
- 一般趋势+中性情绪：8%–10%
- 震荡/高波动/事件密集期：**固定5%**
- 任何情况单次开仓不超过本金15%

### 4. 动态止损（统一上限15%）
- 常规行情：1.5×ATR ≈ 4%–6%
- 高波动/消息期：2.0×ATR ≈ 7%–8%
- 硬性上限：**所有单子止损绝不超过15%**
- 高波动5%轻仓单，若单笔亏损达到15%，**立即市价平仓**

### 5. 双模式止盈（趋势/震荡智能切换）
- 趋势模式：突破关键位后启动移动止盈，量能配合则放宽止盈
- 震荡模式：支撑买压力卖，固定3%–4%快速止盈

### 6. 极端行情与黑天鹅处理
- 识别黑天鹅（极端波动、机构集中砸盘、重大利空）：
  → 停止开仓，已有持仓逐步减仓
  → 或极小仓位做空对冲，严格15%止损
- 不逆势、不扛单、不赌消息落地。

### 7. 数据可靠性保护（解决外部接口依赖）
- 外部舆情/ETF数据延迟或异常时，自动降级；
- 主要依靠 **场内资金情绪 + 合约多空比 + 量能** 独立判断；
- 社交情绪仅作参考，不做主决策。

### 8. 阶梯式风控（最终强化版）
- 单日亏损 ≥5%：降低开仓频率
- 单日亏损 ≥8%：**杠杆直接降至1–2倍**
- 单日亏损 ≥15%：**立即停止当日所有开仓，自动复盘**
- 连续3笔止损：强制休息12小时
- 1分钟波动＞5%：全仓平仓，暂停1小时
- 矿工流出＞1000BTC：禁止做多24h
- 资金费率绝对值 > 0.1% → 市场交易拥挤 → 本次开仓仓位自动降低50%

## Step3 订单执行（OKX官方标准命令）
okx swap place \
  --instId BTC-USDT-SWAP \
  --side ${AI_DIRECTION} \
  --ordType market \
  --sz ${DYNAMIC_SIZE} \
  --tag "agentTradeKit"

## Step4 自动复盘（单日大亏≥15%触发）
AI自动输出：
- 亏损原因（假突破/震荡磨损/黑天鹅/信号滞后）
- 多周期共振有效性
- 量能与趋势匹配度
- 仓位与止损合理性
- 3条可直接落地的优化策略

## Related Skills

- [bitfence](https://6ducklearn.com/skills/bitfence/index.md): Fetch a pre-transaction risk score and advisory recommendation for Solana and Base tokens before the user trades, swaps, or provides liquidity. Read-only; never signs or moves funds.
- [btc grid buy okb](https://6ducklearn.com/skills/btc-grid-buy-okb/index.md): BTC contract grid operates like a perpetual mining machine, continuously generating profits, which are automatically converted into OKB holdings. Risk control with red and yellow lines provides dual protection, with scheduled inspections and intelligent adjustments, all parameters customizable. One-click start for effortless compound earnings.
- [btc usdt swap defensive ai](https://6ducklearn.com/skills/btc-usdt-swap-defensive-ai/index.md): A defensive AI perpetual contract strategy Skill for trading only BTC-USDT-SWAP. It uses multi-timeframe trends, funding rates, open interest, volatility, and account risk control for comprehensive judgment, and automatically executes opening and closing positions and stop-losses through the Agent Trade Kit, suitable for cautious real trading.
- [okx 600u pnl percent v1](https://6ducklearn.com/skills/okx-600u-pnl-percent-v1/index.md): Yield-focused OKX Agent Trade Kit strategy for a 600 USDT account, trading only BTC and ETH USDT perpetuals with single-position risk control, strict stop loss, and skip-first execution logic.
- [dual signal analyzer](https://6ducklearn.com/skills/dual-signal-analyzer/index.md): Analysis Skill of market setup indicators based on RSI and MACD dual indicator cross-validation, providing intelligent buy and sell signals and risk management advice
- [hindsight reviewer](https://6ducklearn.com/skills/hindsight-reviewer/index.md): After each transaction, AI transforms into a strict review judge, using counterfactual reasoning to restore "What would have happened if I had done the right thing at that time?" It doesn't criticize you, but simply tells you with numbers what you missed, how much you benefited, and what the optimal decision was. It activates when users say "review," "why did I lose?", "where did this trade go wrong?", or "hindsight bias."
