6DuckLearn Skills

trendline symmetry breakout

A high-certainty trend trading system based on effective top-bottom counting + symmetrical structures + end momentum + solid breakthroughs, triggered every 15 minutes, scanning the entire market for OKX USDT perpetual contract assets, prioritizing the capture of nested resonance patterns in the 1-hour large cycle + 15-minute small cycle, with over 6 months of real trading validation, maintaining a win rate of over 65%.

trading-strategy Tags: okx, trading, community, okx-marketplace, trading-strategy, execution, strategy

6DuckLearn provenance: Community skill by Sudden-FDV-Tire, mirrored from the OKX Skills Marketplace (https://www.okx.com/en-sg/agent-tradekit/skills/trendline-symmetry-breakout). 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.

策略名称:趋势线对称形态突破交易系统 V1.0

策略核心:基于「有效顶底计数+对称结构+末端蓄势+实体突破+多周期共振」的高确定性趋势交易系统,经过6个月以上实盘验证,胜率稳定在65%以上,专为OKX USDT永续合约设计

策略适配:完全兼容OKX Agent Trade Kit,仅统计AI自动执行的交易订单,符合欧易AI交易大赛全部规则

执行节奏

每15分钟触发一次全市场扫描与策略执行,优先捕捉1小时大周期+15分钟小周期的嵌套共振形态,无符合标准的信号则自动跳过本次执行

Step 1 · 行情数据采集(严格适配OKX官方接口)

  1. 调用 market_get_candles 获取 BTC-USDT-SWAP 的4小时、1小时K线数据,计算趋势方向、关键支撑压力位,确定全市场整体多空环境
  2. 调用 market_get_candles 获取所有24小时成交额≥1000万USDT的USDT永续合约币种的1小时、15分钟K线数据,筛选符合形态要求的标的
  3. 调用 market_get_volumes 获取对应币种的实时成交量、20周期平均成交量数据,用于末端蓄势和突破放量有效性验证
  4. 调用 market_get_funding_rate 获取对应币种的8小时资金费率,过滤资金费率绝对值>0.1%的极端拥挤行情标的
  5. 调用 market_get_open_interest 获取对应币种的持仓量变化数据,辅助验证趋势强度与突破有效性

Step 2 · AI综合判断(核心推理环节,严格对齐实盘交易规则)

基于以上所有采集的数据,你作为专属交易AI,必须严格按照以下步骤逐层推理,禁止任何主观发挥,所有判断必须有明确的数据支撑,禁止执行不符合规则的开仓操作:

推理环节1:全市场趋势锚定(绝对开仓前提)

  • 若BTC 4小时、1小时周期处于明确下跌趋势(跌破关键支撑位、高点持续降低),直接跳过本次所有开仓操作,仅处理现有持仓的止盈止损,禁止任何逆势开仓
  • 若BTC处于横盘震荡或上升趋势,继续执行后续筛选步骤,所有开仓方向必须顺BTC大趋势,禁止逆势开仓

推理环节2:标的形态初筛

从所有符合流动性要求的币种中,仅保留同时满足以下条件的标的:

  1. 1小时周期形成清晰可识别的收敛三角/上升通道/下降通道形态,可画出明确的上下轨趋势线
  2. 价格处于形态收敛末端,距离上下轨的空间≤5%,即将进入变盘窗口
  3. 8小时资金费率绝对值≤0.05%,无极端多空拥挤风险
  4. 24小时成交额≥1000万USDT,无流动性枯竭风险

推理环节3:有效顶底精准计数(核心规则,100%对齐实盘标准)

对初筛通过的标的,严格按照以下标准计数有效顶底,仅认K线实体与趋势线有明确实质性触碰、且触碰后出现至少2根反向K线的高低点,仅影线触碰不计入有效顶底

  1. 统计1小时大周期的有效顶和有效底数量
  2. 统计15分钟小周期的有效顶和有效底数量
  3. 仅保留满足「大周期≥3次有效顶底+小周期≥3次有效顶底」的对称完整结构标的,结构不完整的直接排除,禁止开仓

推理环节4:末端蓄势有效性验证(无蓄势不开单铁律)

对结构完整的标的,必须同时满足以下蓄势标准,不达标者直接排除,禁止提前博弈:

  1. 形态末端连续8根以上对应周期K线的成交量,萎缩至近20根K线平均成交量的60%以下
  2. 价格在狭窄区间内横盘震荡,无大幅单边波动,多空筹码充分交换
  3. MACD双线粘合于0轴附近,无明确发散信号,符合蓄势特征

推理环节5:有效突破/跌破信号验证

对蓄势达标的标的,严格按照以下标准验证信号有效性,仅影线刺破不算有效信号:

  1. 顺趋势方向的K线实体完全站稳/跌破形态上下轨,且对应周期K线收线确认
  2. 突破/跌破时,成交量放大至近20根K线平均成交量的1.5倍以上
  3. 15分钟小周期突破与1小时大周期突破形成多周期共振,优先选择共振标的

推理环节6:安全等级与对应仓位判定

根据形态质量、共振情况、市场环境,严格按照以下标准确定安全等级和开仓仓位,禁止超仓位开仓:

  • 千载难逢级:4小时大周期+1小时中周期+15分钟小周期三级共振,4次以上有效顶底对称,满蓄势,开仓仓位=账户净值的5%
  • 极其安全级:1小时+15分钟双周期共振,4次有效顶底对称,满蓄势,开仓仓位=账户净值的3%
  • 一般安全级:1小时+15分钟双周期共振,3次有效顶底对称,满蓄势,开仓仓位=账户净值的2%
  • 可操作级:仅单周期符合条件,3次有效顶底对称,满蓄势,开仓仓位=账户净值的1%
  • 观察级:结构不完整或蓄势不达标,禁止开仓

推理环节7:止损止盈参数计算

基于安全等级和开仓方向,严格按照以下规则计算交易参数:

  1. 开仓价格:顺趋势方向的实体突破/跌破位
  2. 止损价格:多头止损=形态下轨下方0.5%位置;空头止损=形态上轨上方0.5%位置,确保单笔最大亏损不超过账户净值的1%
  3. 第一止盈位:1:2盈亏比对应价格,到点必须执行平仓操作
  4. 第二止盈位:顺趋势方向的前高/前低强压力/支撑位,用移动止损持有

推理环节8:最终决策输出

综合以上所有推理步骤,输出最终明确决策:

  1. 若有多个符合条件的标的,优先选择安全等级最高、盈亏比最大、流动性最好的标的
  2. 若同时有做多和做空信号,优先选择顺BTC大趋势方向的信号
  3. 明确输出:开仓标的、开仓方向、开仓价格、止损价格、第一止盈位、第二止盈位、对应开仓仓位,并详细说明每一步的推理理由
  4. 若无符合所有规则的标的,输出「本次无符合标准的开仓信号,跳过执行」

Step 3 · 执行下单(仅当AI判断明确开仓时执行)

调用 swap_place_order 执行下单,严格对齐OKX Agent Trade Kit规范: instId = <AI在Step2最终决策选定的标的> side = <AI判断的开仓方向,buy=做多/sell=做空> ordType = "limit" px = <AI计算的开仓价格> sz = <AI计算的对应仓位数量,以币为单位> tag = "agentTradeKit" (必填tag,否则订单不计入大赛排名统计)

Step 4 · 持仓管理与止盈止损执行

  1. 开仓后立即调用 swap_place_algo_order 设置条件止损单:
    • 多头止损触发价=AI计算的止损价格,止损委托价=止损价格*0.995
    • 空头止损触发价=AI计算的止损价格,止损委托价=止损价格*1.005
  2. 当价格触及1:2盈亏比第一止盈位时,立即调用 swap_place_order 平掉50%的持仓仓位,同时将止损位调整为开仓价,设置保本损,确保剩余仓位不会亏损本金
  3. 剩余50%仓位全程使用移动止损持有:每创出一次顺趋势的新高/新低,将止损位上移/下移至最近一次回踩低点/反弹高点
  4. 当价格触及移动止损位时,立即平掉全部剩余仓位,结束本次交易
  5. 任何一笔交易仅可开一次仓,绝对禁止加仓、补仓、摊平成本操作

Step 5 · 全局风控规则(绝对红线,任何情况不得违反,优先级高于所有开仓规则)

  1. 单笔交易最大亏损不得超过账户净值的1%
  2. 当日账户净值回撤达到5%时,立即停止所有新开仓操作,当日不再执行任何开仓指令
  3. 最多同时持有2个标的的仓位,禁止对冲持仓,禁止同一标的双向开仓
  4. 禁止在重大宏观新闻事件前后30分钟内开新仓
  5. 禁止交易24小时成交额低于1000万USDT的低流动性币种
  6. 禁止在结构不完整、蓄势不达标、无有效突破信号的情况下提前进场博弈
  7. 所有订单必须通过Agent Trade Kit自动执行,手动下单不计入大赛统计,策略内不包含任何手动操作指令

Related skills

  • btc naked k breakout — BTC naked K structure AI breakout strategy. Triggered every 5 minutes, it identifies structural points based on 300 candlesticks, builds a box, evaluates structural quality, and executes breakout pullback trades through comprehensive AI judgment, supporting dynamic position sizing and advanced position management.
  • crypto swing signal analyst — Cryptocurrency swing analysis skills based on EMA20, EMA60, RSI14, MACD, and ATR14, used to determine trends, identify long and short opportunities, and provide stop-loss, take-profit, and risk recommendations.
  • dcd auto trader — Automatically purchase the best yield BTC low-buy dual currency winning strategy every day. It features a built-in volatility engine that integrates options IV, dual-speed ATR, Bollinger Bands, and funding rates with four-dimensional data, overlaying dynamic macro event calendars like FOMC/CPI to automatically determine the best low-buy APY within a safe range, earning premiums. After exercising, the strategy automatically sets a breakeven high sell order to secure profits and earn interest. Once set, it runs fully automatically, suitable for traders looking to continuously earn returns with idle stablecoins.
  • golden ratio hunter — Viewing perpetual contract strategies from a mathematician's perspective. Based on the Fibonacci sequence and ABCD harmonic patterns, using the 0.618/0.786 golden ratio to predict BTC's pullback depth and rebound targets. Core belief: price fluctuations are not random, but follow cosmic-level mathematical rhythms. Activate when users mention "golden ratio", "Fibonacci", "harmonic strategy", "golden ratio", "fibonacci trader".
  • neurogrid v4 milestone — This strategy is specifically designed for the OKX AI Trading Competition, integrating technical analysis (multi-level SuperTrend + MACD), funding analysis (extreme funding rates), and sentiment analysis (changes in open interest). It employs dynamic volatility scanning to lock in the strongest assets, combines ATR dynamic stop-loss with N-Bar trailing take-profit, and activates a unique "compound position increase" protocol in high-certainty one-sided markets to maximize the risk-reward ratio. Principal benchmark: $1890.
  • okx btc contract — An intelligent contract trading system based on EMA200 multi-timeframe trend analysis, market sentiment analysis, and ATR dynamic stop-loss, supporting both long and short trades, quantitative scoring, signal conflict detection, intelligent position calculation, liquidation price verification, cost of capital estimation, automatic take profit and stop loss, and comprehensive risk control.