Xiaoyu Fuyao

iaoYu Fuyao — Adaptive Trend-Breakout Martingale EA

One-liner:

A trend-anchored, volatility-filtered, trailing-add-on Martingale system — designed to replace “blind averaging” with directional discipline.

Core Strategy:

1. Trend Anchor: Uses a configurable EMA to define direction: only longs above the EMA, only shorts below it.

2. Breakout Entry: Triggers on a breakout beyond the previous closed candle’s body or full high/low range, in the same direction as the trend.

3. Multi-Layer Filters:

   - ATR volatility filter — skips low-volatility candles.

   - CCI / RSI momentum filter — blocks entries in overbought/oversold zones.

   - Multi-timeframe RSI direction filter — confirms direction on a higher timeframe.

4. Martingale Add-On Engine:

   - Fixed or staged add-on distance (e.g., 500 / 550 / 600 pts).

   - Custom lot sequence (e.g., 0.01 → 0.03 → 0.05).

   - Trailing add-on — places pending trigger lines instead of blindly averaging at fixed intervals.

5. Trailing Take-Profit + Estimated Close Line: Separate activation distances for the first order and added orders; once active, a visual “estimated close line” is drawn on the chart.

Risk Controls:

- Maximum loss amount per group — flat all positions when group drawdown hits the limit.

- Fractal protection — hard cut when floating loss reaches a defined threshold.

- Equity protection — tracks the highest balance; stops trading permanently if equity falls below a protected buffer.

- Consecutive-loss pause — auto-pauses after N consecutive losses for M minutes.

- Weekend / holiday close — optional Friday/holiday close to avoid weekend gaps.

- No-trade window — configurable daily Beijing-time trading blackout.

Dual-Group Independence:

Group A and Group B run independently with separate magic numbers, positions, and risk controls. Configurable bar gap between Group A and Group B openings.

Visual Dashboard:

- Auto-detects and resumes open positions on restart.

- Real-time panel: positions, floating P/L, average price, SL line, add-on trigger line, daily stats.

- One-click buttons: Close Long / Close Short / Close All / Stop Trading.

Account & Capital Recommendations:

- Required account type: Hedging account. Netting accounts are NOT supported.

- Recommended account type: Cent account.

- Minimum account balance: 15,000 cents (= 150 USD).

- Built-in parameters are pre-optimized for 15,000-cent accounts; plug-and-play, no manual tuning required.

Parameter Unit Note (Important):

Default money-related parameters are designed for a Cent Account, where values are in "cents".

- InpLossAmount = 15000 means 15,000 cents, i.e., approx. 150 USD.

- InpNetProtectionDistance = 1000 means 1,000 cents, i.e., approx. 10 USD.

If using a standard USD account, scale the values down proportionally (e.g., 15000 → 150, 1000 → 10) or adjust according to your own capital.

Recommended Pairs:

Only for XAUUSD. Recommended to run on M1 timeframe.

⚠️ Risk Disclosure:

This EA uses a Martingale-style averaging strategy. Past backtests do not guarantee future results. Please test thoroughly on a demo or small live account for at least 1–2 months before scaling up. Martingale strategies carry significant risk; use proper capital management and manual oversight.

Filter:
No reviews
Reply to review