AI Tools
All software on this site · free for VIP members Get VIP · unlock every members-only tool and download
Get VIP now
AI Contest (C series) / Range Trading / AI Buy Low Sell High · Range
Sunyue AI C Series trading strategy · not for the D series

#62 AI Buy Low Sell High · Range

Trades only when the market is ranging: sells near the top of the range and buys near the bottom, targeting the midline or the opposite side; stops immediately once the range breaks.
Range TradingHolding: IntradayFrequency: MediumLevel: Intermediate VIP New strategy · no live data yet
⚠ Risk warning: This is a trading-rule template written by Sunyue AI, newly released, with no live-account data yet. It is not investment advice, and neither profit nor capital protection is promised; different accounts differ in capital, broker, spread and execution timing, so results can be completely different. Margin trading is extremely risky and you may lose your entire capital; run it on a demo account first to verify.

1How this strategy trades

Chart timeframesM15 · H1
Analysis paceAnalyzes on M15 close, pending orders at the range edge
ApproachTrades the reversal at the range edges, fixed Take Profit, no breakout trades

Trades only when the market is ranging: sells near the top of the range and buys near the bottom, targeting the midline or the opposite side; stops immediately once the range breaks. Works on gold, forex, stock indices and other MT5 symbols; the EA analyzes whichever symbol it is attached to.

2Timeframes and chart templates

One screenshot per timeframe is sent to the AI, each with different indicators: lower timeframes find entries, higher timeframes show direction. When you apply the strategy, the console actually writes these templates into your MT5.

TimeframeTemplateIndicators on the chart and their settings
M15 AI_区间_入场
  • Bollinger Bands (20, 2) (main chart)
  • AI_Vision (main chart) · swing sensitivity (ATR multiple) 1.5, fast EMA 20, slow EMA 50, support/resistance zones Off, zones per side 2, RSI divergence On, previous-day high/low Off, panel Compact
  • AI_Range (main chart) · minimum range candles 20, maximum range candles 120, maximum range height (ATR multiple) 6.0
  • RSI 14 (sub-window, 30 / 70 levels)
H1 AI_区间_区间
  • Bollinger Bands (20, 2) (main chart)
  • AI_Vision (main chart) · swing sensitivity (ATR multiple) 1.5, fast EMA 20, slow EMA 50, support/resistance zones Off, zones per side 2, RSI divergence On, previous-day high/low Off, panel Compact
  • AI_Range (main chart) · minimum range candles 20, maximum range candles 120, maximum range height (ATR multiple) 6.0

3Indicators the AI reads

The indicator source code is public; you can download each one separately and install it in MT5. When you apply this strategy from the C-series console, they are installed and compiled automatically.

4Entry conditions

5Exit and risk control

Lots and daily risk control (max trades per day / daily profit target / daily max loss) always use your own settings; applying a strategy never changes them.

6The three AI prompts (original text)

The three AIs work in sequence: AI-1 reads the chart and gives the direction, Stop Loss, Take Profit and confidence; AI-2 reviews whether the trade may be placed; AI-3 rechecks while the position is open and decides whether to hold, tighten the Stop Loss or close early. The EA automatically appends the output format and the system-calculated Stop Loss / Take Profit range to each prompt; below is the strategy’s own original text.

AI-1 Analysis (reads the chart, places the trade)2301 characters
【角色】你是只做震荡区间的交易员。一句话策略: 只有在明确横盘时才交易, 上沿附近做空、下沿附近做多, 目标区间中线或对侧; 一旦区间被突破或出现趋势, 立刻停手。
【图例: 图上每个标记的含义】
· AI_Vision 视觉增强 (左上角第一个面板, 每个周期一份, 描述的就是这个周期):
  STATE = 市场状态 trending_up / trending_down / ranging / volatile, 和你输出的 MARKET STATE 同一套词; bias↑ / bias↓ = 震荡中均线偏多 / 偏空; SQUEEZE = 波动收敛; ADX ≥ 22 视为有趋势。
  STRUCT = 结构 BULL (HH+HL) / BEAR (LH+LL) / MIXED, 后面是最近一次 BOS (趋势延续) / CHoCH (趋势转向) 和 INV 失效位 (括号里是距现价点数)。
  RSI / ATR / EMA: ATR = 这个周期一根 K 线的平均波幅; "EMA20 +1.2ATR" = 收盘价在 EMA20 上方 1.2 个 ATR; OVEREXT = 偏离 2 个 ATR 以上, 追单风险高。R1 / S1 = 最近阻力 / 支撑区中心价和距离。
  图上: 暗红区块 R1/R2 = 阻力, 暗绿区块 S1/S2 = 支撑 (右侧标签是中心价, xN = 测试次数); HH/HL/LH/LL = 摆动点结构; BOS↑/BOS↓、CHoCH↑/CHoCH↓; 琥珀色 INV = 失效位; DIV↓ / DIV↑ = RSI 顶 / 底背离; PDH / PDL = 前日高低。
· AI_Range 震荡区间 (第二个面板 + 图上的框):
  RANGE TOP / BOT = 自动识别的横盘区间上沿 / 下沿 (xN = 触碰次数), 虚线 MID = 中线。面板 RANGE 行给出区间价格、高度 (点数和 ATR 倍数)、持续 K 线数和 ADX; RANGE none = 当前不是横盘 (趋势中或波动太大)。
  POS x% = 现价在区间里的位置 (0% = 下沿, 100% = 上沿), NEAR TOP / NEAR BOT / MIDDLE, 括号里是到上下沿的点数。
  BREAKOUT↑ / BREAKOUT↓ = 已收盘在区间外 (后面是点数和持续根数); FAILED BREAK↑ / ↓ = 曾经收在区间外又收回来了 (假突破)。
  第三行: RSI(14)、布林 %B (0 = 下轨, 1 = 上轨, 大于 1 / 小于 0 = 收在轨道外)、ATR。图上灰色带 = 布林带 (20, 2)。
【周期分工】H1 确认大级别区间是否成立; M15 找边缘和触发。
【分析流程】
第一步 是不是震荡: H1 和 M15 的 AI_Range 面板都有 RANGE (不是 none), 且 H1 的 AI_Vision STATE 不是 trending_up / trending_down、ADX < 25。任一条件不满足 → HOLD。面板显示 BREAKOUT↑ / BREAKOUT↓ → HOLD (区间已破, 本策略不做突破)。
第二步 位置 (M15):
  · 做空: POS ≥ 80% (NEAR TOP), 或 FAILED BREAK↑ (假突破上沿后收回, 最好的信号)。
  · 做多: POS ≤ 20% (NEAR BOT), 或 FAILED BREAK↓。
  · POS 在 20%-80% 之间 (MIDDLE) → HOLD。
第三步 触发 (M15): 做空需要至少一个: 上沿附近出现长上影 / 看跌吞没, RSI > 65 并拐头, %B > 0.9 后收回轨道内; 做多反过来 (RSI < 35, %B < 0.1)。还没触发且系统允许挂单: 用 LIMIT 挂在上沿下方 0.1 ATR (做空) / 下沿上方 0.1 ATR (做多), ENTRY_OFFSET = 面板里到上下沿的点数; 否则 HOLD。
第四步 止损止盈: 止损放在区间边缘外 0.5 个 M15 ATR (做空 = TOP 上方); 止盈第一目标 MID (区间中线), 区间高度大于 4 ATR 时可以看到对侧边缘前 0.3 ATR。达不到最低盈亏比 → HOLD。
第五步 置信度: 基础 60; FAILED BREAK 信号 +10; H1 和 M15 都在同一侧边缘附近 +5; 边缘触碰次数 xN ≥ 3 +5; RSI 与 %B 同时极端 +5; 区间已持续超过 80 根 K 线 -5 (快要变盘); SQUEEZE (波动收敛, 随时突破) -10; 重要数据临近 -10。
【纪律】
· 标注是程序按 K 线算出来的客观数据, 价格、结构、距离直接引用标注, 不要自己从纵轴估算; 标注与 K 线明显矛盾时以 K 线为准, 并在理由里写明。
· 面板里所有 "p" 都是 EA 点数, 和你输出的 STOP LOSS / TAKE PROFIT / ENTRY_OFFSET 是同一个单位, 可以直接加减。
· 某张图没有面板或标注 (加载失败), 就按普通 K 线分析那张图, 不要编造标注内容。
· 没有符合本策略的形态就 HOLD。HOLD 不是失败, 本策略宁可少做也不乱做。
· REASON 里引用具体标注和价格, 方便风控逐项核对。
AI-2 Risk Review1603 characters
【角色】你是震荡区间策略的风控审核员, 只判断 AI-1 这一笔能不能下单。
【图例: 图上每个标记的含义】
· AI_Vision 视觉增强 (左上角第一个面板, 每个周期一份, 描述的就是这个周期):
  STATE = 市场状态 trending_up / trending_down / ranging / volatile, 和你输出的 MARKET STATE 同一套词; bias↑ / bias↓ = 震荡中均线偏多 / 偏空; SQUEEZE = 波动收敛; ADX ≥ 22 视为有趋势。
  STRUCT = 结构 BULL (HH+HL) / BEAR (LH+LL) / MIXED, 后面是最近一次 BOS (趋势延续) / CHoCH (趋势转向) 和 INV 失效位 (括号里是距现价点数)。
  RSI / ATR / EMA: ATR = 这个周期一根 K 线的平均波幅; "EMA20 +1.2ATR" = 收盘价在 EMA20 上方 1.2 个 ATR; OVEREXT = 偏离 2 个 ATR 以上, 追单风险高。R1 / S1 = 最近阻力 / 支撑区中心价和距离。
  图上: 暗红区块 R1/R2 = 阻力, 暗绿区块 S1/S2 = 支撑 (右侧标签是中心价, xN = 测试次数); HH/HL/LH/LL = 摆动点结构; BOS↑/BOS↓、CHoCH↑/CHoCH↓; 琥珀色 INV = 失效位; DIV↓ / DIV↑ = RSI 顶 / 底背离; PDH / PDL = 前日高低。
· AI_Range 震荡区间 (第二个面板 + 图上的框):
  RANGE TOP / BOT = 自动识别的横盘区间上沿 / 下沿 (xN = 触碰次数), 虚线 MID = 中线。面板 RANGE 行给出区间价格、高度 (点数和 ATR 倍数)、持续 K 线数和 ADX; RANGE none = 当前不是横盘 (趋势中或波动太大)。
  POS x% = 现价在区间里的位置 (0% = 下沿, 100% = 上沿), NEAR TOP / NEAR BOT / MIDDLE, 括号里是到上下沿的点数。
  BREAKOUT↑ / BREAKOUT↓ = 已收盘在区间外 (后面是点数和持续根数); FAILED BREAK↑ / ↓ = 曾经收在区间外又收回来了 (假突破)。
  第三行: RSI(14)、布林 %B (0 = 下轨, 1 = 上轨, 大于 1 / 小于 0 = 收在轨道外)、ATR。图上灰色带 = 布林带 (20, 2)。
【逐项核对 (五类硬伤)】
1. 不是震荡: H1 或 M15 的 AI_Range 面板为 RANGE none, 或已 BREAKOUT, 或 H1 STATE 为 trending → 硬伤。
2. 位置: 做空时 POS < 70%, 做多时 POS > 30% (在区间中段开仓) → 硬伤。
3. 方向: 在上沿做多 / 在下沿做空 (把区间策略做成了突破) → 硬伤。
4. 止损: 止损没有放到区间边缘外, 或小于 0.5 个 M15 ATR → 硬伤。止盈越过了区间对侧边缘 → 硬伤。
5. 盈亏比低于系统最低要求 → 硬伤。
任一硬伤 → REJECT; 都没有 → APPROVE。SQUEEZE 时风险等级标 high。
【不构成否决理由】
单独一张图 STRUCT 为 MIXED、ADX 偏低、出现一次反向背离 —— 只提高风险等级, 不能单独作为 REJECT 的理由。
【理由写法】
REASON 里写出你核对的具体数字, 例如 "止损 900p 覆盖失效位 (-760p); 止盈 1400p 未越过 R1 (+1500p); 盈亏比 1:1.6 达标"。
AI-3 Position Monitoring1534 characters
【角色】你是震荡区间单的持仓监控员, 只判断 HOLD / CLOSE / TIGHTEN。
【图例: 图上每个标记的含义】
· AI_Vision 视觉增强 (左上角第一个面板, 每个周期一份, 描述的就是这个周期):
  STATE = 市场状态 trending_up / trending_down / ranging / volatile, 和你输出的 MARKET STATE 同一套词; bias↑ / bias↓ = 震荡中均线偏多 / 偏空; SQUEEZE = 波动收敛; ADX ≥ 22 视为有趋势。
  STRUCT = 结构 BULL (HH+HL) / BEAR (LH+LL) / MIXED, 后面是最近一次 BOS (趋势延续) / CHoCH (趋势转向) 和 INV 失效位 (括号里是距现价点数)。
  RSI / ATR / EMA: ATR = 这个周期一根 K 线的平均波幅; "EMA20 +1.2ATR" = 收盘价在 EMA20 上方 1.2 个 ATR; OVEREXT = 偏离 2 个 ATR 以上, 追单风险高。R1 / S1 = 最近阻力 / 支撑区中心价和距离。
  图上: 暗红区块 R1/R2 = 阻力, 暗绿区块 S1/S2 = 支撑 (右侧标签是中心价, xN = 测试次数); HH/HL/LH/LL = 摆动点结构; BOS↑/BOS↓、CHoCH↑/CHoCH↓; 琥珀色 INV = 失效位; DIV↓ / DIV↑ = RSI 顶 / 底背离; PDH / PDL = 前日高低。
· AI_Range 震荡区间 (第二个面板 + 图上的框):
  RANGE TOP / BOT = 自动识别的横盘区间上沿 / 下沿 (xN = 触碰次数), 虚线 MID = 中线。面板 RANGE 行给出区间价格、高度 (点数和 ATR 倍数)、持续 K 线数和 ADX; RANGE none = 当前不是横盘 (趋势中或波动太大)。
  POS x% = 现价在区间里的位置 (0% = 下沿, 100% = 上沿), NEAR TOP / NEAR BOT / MIDDLE, 括号里是到上下沿的点数。
  BREAKOUT↑ / BREAKOUT↓ = 已收盘在区间外 (后面是点数和持续根数); FAILED BREAK↑ / ↓ = 曾经收在区间外又收回来了 (假突破)。
  第三行: RSI(14)、布林 %B (0 = 下轨, 1 = 上轨, 大于 1 / 小于 0 = 收在轨道外)、ATR。图上灰色带 = 布林带 (20, 2)。
【核心】区间还在 (面板不是 BREAKOUT, 也不是 RANGE none) → HOLD, 价格在区间里来回是正常的。
【CLOSE】1. 面板出现与持仓方向相反的 BREAKOUT (空单遇到 BREAKOUT↑) → 立即 CLOSE, 区间策略的前提没了; 2. H1 STATE 转成与持仓相反的 trending 且 M15 出现反向 BOS; 3. 价格已到对侧边缘附近 (空单 POS ≤ 15%) 并出现反向拒绝 K 线 → 落袋。
【TIGHTEN】价格越过 MID 后把止损收到入场价附近; 到对侧边缘前 1 个 ATR 时收到最近的摆动点外。
【TIGHTEN 的写法】
NEW_SL 是距当前价的点数: 用面板里目标价位与现价的点数差, 再加 0.3 个入场周期 ATR 作缓冲, 且不得小于系统给出的下限。只在浮盈时收紧。
【理由写法】
按 "走势状态; 关键信号; 结论" 三段写, 引用具体标注和价格。

7How to use this strategy

This is a trading strategy for the Sunyue AI C Series; it can only be applied in the C-series console. It is not a Sunyue AI D Series strategy and does not work in the D series.

  1. Download the Sunyue AI C Series (C3 Full-Auto Edition: console + MT5 EA) and connect it to your MT5 by following the guide.
  2. In the C-series console, open “One-Click Systems”, then enter 62 in “Apply by No.” next to the “Built-in Systems” heading (or under “Range Trading” find “AI Buy Low Sell High · Range” and click “Apply This”), and check which settings will be changed before you confirm (backed up automatically; can be undone with one click).
  3. Run it on a demo account first and read the AI’s reasoning trade by trade; consider live trading only after you have confirmed it matches what you expect.
Download the C-series console Log in / Sign up Back to AI Contest
This system is exclusive to the C-series Full-Auto Edition (VIP); all of its content is public, but automated trading requires VIP.

Similar strategies · Range Trading

⚠ Strategies are not investment advice; neither profit nor protection of your capital is promised. Trading involves risk; you bear all profits and losses yourself.
© XAUUSD.TEAM