UprZone 18 Forbidden Matrix
- Experten
-
Shi Chao Ma
Never trust anything that can think for itself,
If you can't see where it keeps its brain. - Version: 4.39
- Aktualisiert: 12 November 2026
- Aktivierungen: 20
🌊 AdaptiveTrendGrid
First decide whether today is worth trading—then act. An adaptive EA designed specifically for gold intraday trading.
🧪 Try it directly in the Strategy Tester
📦 Set files / User guide:
💡 Why build this EA?
A common problem with many gold EAs is that they open trades every day regardless of market conditions:
• On a dead, lifeless day, forcing trades only bleeds you out through spreads and repeated stop-outs.
• On a strong one-sided trend day, without protection mechanisms, floating losses can keep growing.
• At night and over weekends, you also have to worry about gaps.
AdaptiveTrendGrid takes the opposite approach:
Trade less when trades are ineffective, participate with the trend, have a fallback when problems arise, and stop at the scheduled time.
⚙️ How it works (at a glance)
① Daily market check-up
At the start of each day, it first evaluates how active the market is. If activity is insufficient, it stays flat for the entire day. On days without volatility, trend strategies only incur costs without room to profit—not trading is itself a form of risk control.
② Secondary confirmation for borderline conditions
When the market is in a “not good, not bad” borderline state, it neither gives up directly nor enters blindly. Instead, it keeps observing short-term volatility and enters only after confirming a real move has started. This avoids missing sudden moves while also avoiding being trapped by false starts.
③ Layered breakout pending orders
Centered on the day’s reference price, it places symmetric layered breakout pending orders above and below, with position sizes allocated proportionally by layer: smaller near layers, medium middle layers, and larger far layers.
If price rises, upper orders are triggered one by one; if price falls, lower orders are triggered one by one.
It does not predict direction—whichever layer price reaches, that layer gets filled. It participates with the trend rather than averaging down against it.
④ Trailing take-profit
After the day’s profit reaches the target, it does not rush to exit. Instead, the protection line moves with the market, and it closes all positions only when a pullback touches the protection line. On trend days, this avoids exiting too early and missing a large move, while also avoiding giving back already-earned profit.
⑤ Dynamic breakout supplementary module
Beyond the main logic, it dynamically adjusts the distance of additional breakout pending orders based on the recent volatility range, with break-even and trailing management. When volatility is high, distances widen; when volatility is low, distances tighten—avoiding “too close and getting swept” or “too far and missing the move.”
⑥ Scheduled daily close-out
At the set time, it closes all positions uniformly. The day’s business is settled the same day—no overnight holding and no weekend exposure.
📊 Supporting images:
• “Simulated order structure diagram” order_structure.png
• “Algorithm flow chart” algorithm_flow.png
🛡️ Five layers of risk control
| Stage | What it does | Why |
|---|---|---|
| Before trading | Does not trade when market conditions are unqualified; checks account margin before placing orders and automatically reduces lot size if insufficient | The cheapest risk control is not entering positions you shouldn’t enter |
| During trading | Automatically pauses or enters protection mode on abnormal spreads, narrow-range choppiness, too many orders, and around major news | Grid-type strategies are most vulnerable when there is “no direction” or a “sudden direction change” |
| Post-trade | When the day’s loss reaches the warning line, stops adding positions, deletes unfilled pending orders, and enters recovery; uses hedging when necessary to reduce one-sided exposure; protective stop-loss updates dynamically with positions | Losses are when emotional decisions are most likely, so handling rules are written in advance |
| Extreme conditions | Identifies deteriorating trends before the loss line is hit and exits early; proactively exits on abnormal volatility or persistent account deterioration; reduces positions in steps; and maintains a final circuit-breaker floor | Simply waiting for stop-loss triggers is often too late |
| Time-based | Opens new orders only within the set session and closes all positions at the scheduled time; restores the day’s state after disconnection or restart | Avoids gaps and prevents duplicate orders after restart |
🆚 How is it different from common counter-trend grids?
| Common counter-trend grid | AdaptiveTrendGrid | |
|---|---|---|
| Position-adding direction | Counter-trend; buys more as price falls | Trend-following; triggered only when price reaches the level |
| Trades every day? | Usually yes | Checks market conditions first; stays flat if not qualified |
| Overnight holding | Common | Daily liquidation |
| Exit method | Fixed take-profit | Trailing take-profit that protects accrued profit |
| Risk control | Single stop-loss | Five layers of defense |
🙋 Who is it for?
• Traders who want to trade gold intraday without monitoring charts all day
• Traders who value drawdown control and don’t want to “gamble”
• Traders who want clear, explainable strategy logic
📋 Recommended configuration
| Item | Suggestion |
|---|---|
| Symbol | XAUUSD (can also be used on other forex symbols) |
| Timeframe | Any |
| Platform | MetaTrader 4 |
| Account type | Standard / Cent, selectable in inputs |
| Minimum capital | [USD 10,000] |
| Leverage | [1:200] |
| VPS | Recommended for live trading |
| Dashboard | Real-time display of status, P/L, orders, and risk-control state on the chart |
🚀 Beginner steps
-
Run on a demo account for 1–2 weeks to become familiar with the dashboard and trading rhythm
-
Validate with a small live account
-
Then adjust lot size according to your own risk tolerance
❓ FAQ
Q: Is it a grid EA?
A: It uses a layered pending-order structure, but unlike the common “counter-trend, buy more as price falls” approach, it is trend-following/triggered in the direction of price movement, with market filters, trailing take-profit, multi-layer risk control, and daily liquidation added on top.
Q: What is the biggest risk?
A: Extreme one-sided moves, gaps, and abnormal spread widening. No strategy can completely eliminate such risks; please start with small lot sizes.
Q: There are many parameters—do I need to adjust all of them?
A: No. Default parameters are already configured for gold; beginners are advised to adjust only lot size and account type.
Q: Do I need to keep my computer on all the time?
A: A VPS is recommended. After disconnection or restart, the EA restores the day’s state.
Q: Can it be used on non-gold symbols?
A: It can run, but default parameters are tuned for gold; test on demo and adjust first.
💬 Technical support
For issues, please contact via MQL5 private message and include your broker name, symbol name, account type, and log screenshots for faster diagnosis.
⚠️ Risk warning
Forex and gold trading involve high risk and may result in loss of all capital. Past performance does not guarantee future results. This product provides a trading tool and does not constitute any investment advice. Do not use funds you cannot afford to lose.
