6DuckLearn Skills

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.

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

6DuckLearn provenance: Community skill by Independent publisher, mirrored from the OKX Skills Marketplace (https://www.okx.com/en-sg/agent-tradekit/skills/NeuroGrid_V4_Milestone). 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.

执行节奏

每 5 分钟触发一次行情扫描,每 1 小时进行一次资金规模与阶段状态核对。

Step 1 - 行情数据采集 (多维目标池扫描)

调用 market_get_candles 获取以下三个目标池的 4H, 1H, 15M, 5M K线数据,并计算 SuperTrend(10, 3.0), MACD, ATR(14) 及 5M 级别的 20周期成交量均值 (Volume MA20):

  • 核心池 (Core Pool): ETH-USDT-SWAP
  • 主流池 (Mainstream Pool): 全网市值排名前 20 的活跃币种 (如 SOL, BTC, BNB 等)
  • 先锋池 (Vanguard Pool): 实时扫描 OKX 涨跌幅榜单(Gainers/Losers),选取过去 1 小时振幅最大且 5M 级别爆量的 Top 3 币种。

Step 2 - 市场情绪采集 (资金与持仓博弈)

调用 market_get_funding_rate 获取目标币种的实时资金费率。 调用 market_get_open_interest 获取持仓量 (OI) 及其近期变化率。

Step 3 - AI 综合判断与资金路由 (核心)

基于以上数据,你作为交易 AI,必须首先读取当前账户总净值 (Total Equity),然后根据以下【三阶段里程碑】严格分配资金和开仓逻辑:

阶段 1:极速破局期 (账户净值 < $10,000)

  • 资金分配:100% 资金(起始 $1890)全部授权给【先锋池】(涨跌榜币种)。
  • 开仓逻辑:寻找 5M/15M 级别放量突破、且资金费率极度倾斜的榜单币种。一旦 SuperTrend 顺势发散,立即市价切入。
  • 杠杆设置:满杠杆(该币种允许的最大杠杆)。

阶段 2:杠铃扩张期 ($10,000 <= 账户净值 < $100,000)

  • 资金分配:采用 80/20 杠铃策略。
    • 80% 资金 ($8000+):分配给【主流池】(前 20 主流币)。寻找 1H 级别明确单边趋势,满杠杆执行顺势突破。
    • 20% 资金 ($2000+):继续分配给【先锋池】(涨跌榜)。寻找日内极端波动,维持打榜爆发力,满杠杆执行。

阶段 3:霸榜守成期 (账户净值 >= $100,000)

  • 资金分配:采用 70/20/10 稳健复利分配。
    • 70% 资金 ($70000+):分配给【核心池】(ETH)。仅在 4H 级别 SuperTrend 与 MACD 共振时出手,严格限制 10X 杠杆,做稳健的波段复利。
    • 20% 资金 ($20000+):分配给【主流池】(前 20)。抓取 1H 级别趋势,满杠杆执行。
    • 10% 资金 ($10000+):分配给【先锋池】(涨跌榜)。维持市场最高敏锐度,捕捉短线异动,满杠杆执行。

最终输出:明确输出当前所处阶段 / 选定标的 / 开仓方向 (buy/sell) / 该笔订单使用的具体金额 / 建议杠杆 / 推理逻辑。若无符合信号,输出“观望”。

Step 4 - 执行下单

调用 swap_place_order: instId = < AI 在 Step 3 选定的标的 > side = < AI 判断的方向, buy/sell > ordType = "market" sz = < 根据 AI 计算的具体金额和杠杆换算的合约张数 > tag = "agentTradeKit" // 必填,参与打榜排名

Step 5 - 风控与追踪止盈设置

开仓后立刻调用 swap_place_algo_order

  • 阶段性硬止损
    • 阶段 1:单笔最大亏损不超过总净值的 5%。
    • 阶段 2:单笔最大亏损不超过总净值的 3%。
    • 阶段 3:单笔最大亏损不超过总净值的 1.5%。
  • N-Bar 追踪止盈: 浮盈达到 10% 时启动。多单将止损上移至过去 5 根 15M K线的最低点;空单移至最高点。只进不退,让利润奔跑。
  • 复利加仓(仅限阶段1和阶段2的主流/先锋池): 当单笔浮盈达到初始本金 50% 时,平仓 30% 落袋,并将这部分利润的一半顺势加仓,同时将整体防守线上移至保本价。

底线风控

// 单个标的禁止多空双开。 // 任何阶段,若账户净值从近期最高点回撤超过 30%,强制暂停所有交易 24 小时进行冷静。

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".
  • 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.
  • okx maker entry — Open positions through automatic limit orders, replacing manual market orders. It saves on fees compared to market orders while being faster and less impactful on the order book price than manual methods. By scanning the liquidity of the order book, it uses multiple tiers of automatic limit orders. Once the task is initiated, it intelligently adjusts the limit order levels based on price; users only need to input the cryptocurrency and position size at the start.