sarfzh

Yunxing Li

China
Welcome to Runyao GoldKoi EA
Gold Four-Engine Intelligent Trading System — V3.69 Fusion Edition
This EA was developed by the Runyao Quant team based on years of practical experience in gold grid trading. It uniquely runs four strategy engines in parallel: main grid, reverse hedge, trend reversal, and SAR reversal.

Special note: The code development of this EA was completed with the support of China's DeepSeek large model. From organizing strategy ideas, writing code, debugging and troubleshooting, to the fusion and isolation design of the four engines, DeepSeek provided key support throughout. Thanks to DeepSeek, even a beginner who does not know how to code can turn trading ideas into a runnable, auditable EA and truly achieve "code freedom."

The four engines use independent magic numbers, do not interfere with each other, and each has its own risk control and independent take-profit and stop-loss.

The system is optimized for XAUUSD accounts and can start with as little as $1,000. The initial lot size is automatically tiered by account balance, with no manual position sizing required.

System signals are based on AO momentum + multiple trend filters + dynamic ATR spacing + SAR reversal confirmation, combined with four layers of protection: tiered take-profit, per-order take-profit, and breakeven trailing stop.

All strategies have independent risk control. The main EA has a built-in 90% floating-loss circuit breaker, and the SAR strategy has an independent risk budget, so no single strategy can drag down the whole account.

Backtest results show: grid averaging down + hedging to unlock positions + trend enhancement + SAR reversal backup; the equity curve is smooth, drawdown is controllable, and recovery is rapid.

There is no sales pitch about "neural networks / quantum computers / perfect straight-line backtests." Every line of code in the four engines is traceable, verifiable, and reproducible.

Development Story: No Coding Background, Still Code Freedom
I am not a professional programmer.

What I have is an understanding of gold grid trading, repeated refinement of strategy logic, and the persistence to turn ideas into reality.

What actually turned these ideas into MQL5 code, fused the four engines into one EA, isolated the magic numbers cleanly, and eliminated compile warnings one by one was China's DeepSeek.

From the first version of the main grid to the parallel operation of the hedge, trend, and SAR engines, DeepSeek helped me complete a large amount of code writing, logic checking, and debugging optimization.

Thanks to DeepSeek, even a beginner like me who does not know how to code can achieve code freedom.

This is also the value this EA wants to convey: trading ideas are no longer blocked by the programming threshold.

Risk Disclaimer
■ EA is not a money-printing machine; extreme market conditions can still lead to losses
■ The grid strategy will keep adding positions in a one-sided trend; be sure to set CfgMaxLossPercent
■ The SAR strategy relies on trailing stops; please keep the terminal chart open
■ It is recommended to run it on a demo account or with small live funds for at least 2–4 weeks first
■ Equity curve volatility is higher when four strategies run in parallel; observe carefully before deciding
■ Past performance does not guarantee future results
■ Use according to your own risk tolerance; never over-leverage

Main Features
■ Four engines in parallel: main grid + reverse hedge + trend reversal + SAR reversal; one EA does the work of four
■ Magic numbers fully isolated: 142857369 / 142857639 / 369 / 936, with no interference
■ Automatic balance-based lot tiers: one tier per $9,000, automatically upgrades
■ First 6 levels use the same lot size: moderate position adding, no account blow-up
■ Clear tiered take-profit: separate targets for 1 order / 2 orders / 3 orders / 4–6 orders / 7+ orders
■ Per-order take-profit protection: activates when more than 6 positions are open; each 0.01 lot closes individually after earning $300
■ Dynamic ATR spacing: $90–$300, adaptive to market conditions
■ Hedge activates automatically: when the main grid reaches 4 orders, a reverse position opens automatically
■ Independent trend strategy: activates when the main grid has 3 or 4 orders; H1 AO crossover; maximum 4 orders
■ SAR reversal backup: runs independently on OnTimer every 100 ms; breakeven + trailing stop
■ Multiple filters: H4 EMA + H4 ADX/DI + D1 EMA + H1 highs/lows + H1 ADX + H1 WR + spread
■ Risk-control backstop: 90% floating-loss circuit breaker + 30-lot total volume cap + margin check
■ Cent-account friendly: starts from as low as $500
■ Fully open source: auditable code, no black box
■ No exponential martingale explosion: mild 1.09× increase; the first 6 levels do not double
■ DeepSeek-assisted development: even without coding skills, strategy ideas can be implemented

Suitable Scenarios
■ Gold XAUUSD accounts (recommended)
■ Small and medium accounts with $1,000–$10,000
■ Traders who accept the grid + hedge-unlock approach
■ Investors who want multiple parallel strategies to diversify risk
■ Office workers who do not want to watch charts every day and prefer fully automated operation
■ Prop firm intraday trading (recommended to disable the SAR strategy or lower its risk)
■ Individual traders who have trading ideas but no programming skills and hope to use AI to achieve code freedom
■ Not suitable for: heavily leveraged standard accounts, extremely volatile instruments, or those seeking short-term windfall profits

Backtesting Recommendations
Just run it on XAUUSD with all four strategies enabled.

The chart timeframe does not matter (the main EA runs on OnTick, SAR runs on OnTimer).

Suggested backtest parameters:

Initial deposit: $500–$1,000 (for cent accounts, use the cent balance)

Time range: at least 2 years

Modeling quality: 99.9% real ticks

Spread: set according to your actual broker

You can disable CfgUseSarStrategy separately to compare three-engine vs four-engine performance.

Timeframe
Any timeframe on XAUUSD (the strategy internally uses H1 / H4 / D1 data)

One-Sentence Summary
Main grid averages costs, hedge unlocks positions, trend strategy enhances returns, SAR fills the gap. Four engines, one EA, independent operation, risk-control backstop.

Leveraging China's DeepSeek, even beginners without coding skills can achieve code freedom.

The intelligent steward for gold cent accounts, starting from $500, open source and auditable.

About the Developer
The Runyao Quant team focuses on developing automated trading systems for gold cent accounts and adheres to an open-source, auditable, and reproducible development philosophy. All strategy code is public, with no black box and no "perfect straight-line backtest" marketing hype.

The code development of this EA was completed with the support of China's DeepSeek. From strategy logic to MQL5 implementation, from multi-engine fusion to compile debugging, DeepSeek greatly lowered the development threshold.

Special thanks to DeepSeek: enabling an ordinary trader who does not know how to code to turn ideas into a runnable EA and achieve code freedom.

Charts & Ideas

Charts & Ideas
The user doesn't have any trading ideas yet
Go to Charts and Trading Ideas