MT5 Expert Advisor · Non-profitable

Atlas TrendGuard

Donchian, EMA and ADX trend breakout with ATR exits/trailing.

USDJPY · H1 · Original trading hours

Source + EX5 + selected preset + checksums. Strategy Tester research build.

AtlasFX TrendGuard symbolic risk shield
Concept illustration; the measured backtest graphs are below.

Atlas TrendGuard

Selected H1 USDJPY Donchian/EMA/ADX breakout variant. It is a separate variant, not a replacement for a library rule.

Selected public preset

RiskPercent 0.25; CampaignSession 0; CampaignSessionPolicy 1; CampaignBrokerWinterUTC 2; CampaignBrokerDST 1.

Rule and risk mechanics

Long: completed H1 close above the highest high of bars 2–21, above EMA(200), and ADX(14) ≥20; short mirrors it. ATR(14) stop 2 ATR, target 3R, then an original-risk 2 ATR trail after 1R, checked every 30 seconds. Risk is 0.25% of equity; source gates are 20 points spread, broker 07:00–20:00, Friday 16:00, and a persisted 1.5% daily brake.

Relationship to the strategy library

Related only by family: Donchian 20/10 Breakout is D1 close-based 20/10 with a different holding contract. Atlas is H1 with EMA/ADX, 3R and trailing. See the legacy EA map for mapping scope.

Bounded native functionality observation

The receipt recorded 12 entries and 12 exits: 9 stop-loss, 2 target, and 1 tester-forced close. The approved new diagnostic window is 2024-02-01 inclusive to 2024-03-01 exclusive, on USDJPY.TFQ1 H1, with Model 4, a USD 10,000 deposit and 1:100 leverage at broker UTC+2. It added no commission or delay; recorded native swap history is unverified. It is separate from older archived broker charts and reports. It is not a profitability, restart, or full-rule-coverage result.

Package documentation and download; exact selected preset and binary identity: selected preset SHA-256 10dee294d07e617271347dd088c2984223d6cd102c24469e315958ddc94ed3fd; package binary SHA-256 9c7f9765992faefe607b316f8c1a0762267b93fc1bf91721f3ceb7a020dab42d. Public functionality status: JSON evidence.

Non-profitable · selected configuration

Selected configuration: rolling-year net EUR -136.26; full-period net EUR +2186.87. Negative confirmation is retained in the archive.

Strategy rules

How this strategy works

  1. Use a completed H1 close beyond the previous 20-bar Donchian channel, in the EMA200 direction with ADX14 ≥ 20.
  2. Selected risk is 0.25%, initial stop 2 × ATR14 and fixed target 3R. ATR trailing is enabled, starts at 1R and checks every 30 seconds at a 2 × ATR distance.
  3. Entries use the original 07:00–20:00 broker-hour window, block late Friday from 16:00, and require spread ≤ 20 platform points.
  4. The daily equity brake is 1.5%; free-margin use and ownership checks can block a signal. All campaign downloads remain restricted to Strategy Tester.

The selected configuration uses USDJPY / H1, variant s0. All indicator and session values used by this build are listed in the preset editor.

Historical evidence

Measured backtests

12-month net · EUR-136.26After commission & swap
Profit factor0.9212-month review
Equity drawdown4.37%12-month review
Trades11912-month review
Atlas TrendGuard realized balance, 2025.09.01 to 2026.09.01; net EUR -136.26
2025.09.01 → 2026.09.01 (end exclusive). Starting balance EUR 10,000. 66% real ticks. Available IC Markets real ticks with MT5 fallback. Realized balance includes commissions and swap; floating equity is in the original MT5 report. Open original MT5 report and equity graph.
Atlas TrendGuard realized balance, 2019.01.01 to 2026.09.21; net EUR +2,186.87
2019.01.01 → 2026.09.21 (end exclusive). Starting balance EUR 10,000. 9% real ticks. Available IC Markets real ticks with MT5 fallback. Realized balance includes commissions and swap; floating equity is in the original MT5 report. Open original MT5 report and equity graph.
Separate native MT5 runs. EUR 10,000 each; 1:30 leverage; 100 ms execution delay. End dates are exclusive.
Period / modelNet EURPFTradesEquity DDNative report
Development
2019.01.01 → 2024.01.01
M1 OHLC screening
+1,752.071.216715.75%MT5 report
Validation
2024.01.01 → 2025.01.01
M1 OHLC screening
+628.761.431372.36%MT5 report
12-month review
2025.09.01 → 2026.09.01
Real-tick mode + fallback
-136.260.921194.37%MT5 report
Long review
2019.01.01 → 2026.09.21
Real-tick mode + fallback
+2,186.871.1610235.54%MT5 report
Your next test

Adjust the strategy preset

Adjust the actual MT5 inputs below, then download a .set file. Load it through Strategy Tester → Inputs → Load. The EA ZIP includes source code and the compiled file.

Selected tested preset loaded.

Deployment · 4 inputs
Signal · 5 inputs
Risk · 9 inputs
Filter · 7 inputs
Research session controls · 6 inputs

Changes apply to your downloaded file. They do not change the published tests.

Preview the .set file

MT5 also validates parameter combinations and may reject incompatible inputs. Session modes use local London, New York and Tokyo hours. Broker-time conversion uses the configured winter UTC offset and DST rule. A session filter limits eligible entries; it does not change the underlying strategy signal or create trades where none qualify. Policy 2 also closes before the chosen session ends.

Install and reproduce the archived broker test

  1. Download and extract the ZIP. Copy AtlasFX_TrendGuard_Sessions.ex5 into MQL5/Experts/TradeForex in the MT5 data folder. Keep MQ5 and all MQH headers together if compiling.
  2. Open Strategy Tester, select the EA, USDJPY and H1. The build rejects normal chart execution.
  3. Load the included selected-test.set or a preset downloaded above. Symbol, chart timeframe, dates, deposit and tick model are tester settings outside the .set file.
  4. For confirmation choose “Every tick based on real ticks”, EUR 10,000, 1:30 leverage and 100 ms delay. Use 2025.09.01–2026.09.01 or 2019.01.01–2026.09.21; retain the generated report and Journal.
  5. Allow MT5 to obtain the available broker history. Compare actual date coverage, costs, trade count and history quality; a later download or different broker server can change the result.

Read the general MT5 installation guide; this package’s tester-only restriction takes precedence over normal chart-activation steps.

Limits of the archived broker results

  • Tested values are research settings, not a profitability claim.
  • Broker history, spread, swaps and fills can change outcomes.
  • These are retrospectively selected historical tests. Development, validation and review periods overlap previously inspected history; this is not a fresh independent holdout.
  • The balance plots show realized outcomes. Equity drawdown includes floating positions and must not be inferred from the balance line alone.
  • Available native ticks and fallback are accepted. Missing ticks, historical spread paths and cost assumptions limit confidence; profitable history does not guarantee future profitability.
  • RiskPercent is an entry-sizing estimate, not a hard loss cap. Costs, gaps and slippage can exceed that estimate; some legacy sizing excludes transaction costs.

Additional cost stress adds 25% of the absolute commission and swap amounts: 12-month stressed net EUR -181.85; long-period stressed net EUR +1,769.96. This is not a full spread or slippage stress.

Files and reproducibility

Each ZIP includes MQ5 source, required headers, EX5, README, selected-test.set, selection.json and SHA256SUMS.txt. Compiled builds and measured results are unchanged by this documentation update.

ZIP SHA-25609b2c51f85ce91966a6a613f7ba8a3e87a66b4d777cd4fa0a3e68c4e03e0b3ce

Tested EX5 SHA-2569c7f9765992faefe607b316f8c1a0762267b93fc1bf91721f3ceb7a020dab42d

Selection criteria and all strategy categories · Frozen selection record

Follow on Facebook