HMA Trend PRO
- Experts
- Marina Dangerio
- Version: 1.2
- Activations: 5
HMA TrendPro
Experts · AuroraQuantSystems · Version: 1.2 · Activations: 5
AQS-HMA TrendPro
Hull Moving Average (HMA) trend-following Expert Advisor for MetaTrader 5
Engineered around trend-cycle confirmation, ATR-defined exits, structured pyramiding, and production-grade safety controls.
Overview
AQS-HMA TrendPro is a rule-based trend-following EA for MetaTrader 5 that seeks to participate in sustained directional moves by combining:
- Fast HMA reversal timing (entry trigger)
- Slow HMA trend confirmation (directional filter and cycle control)
- ATR-based SL/TP (structural exits)
- Optional pyramiding (adds only after the market moves in favour)
- Defensive “production safety” controls (spread/position guards, catastrophic basket stop, cooldown after stop, and optional time stop)
The strategy is designed as a systematic trend component with a focus on repeatability, constraint-based risk behaviour, and execution robustness, rather than aggressive trade frequency.
Strategy Classification
Primary type: Trend-following (HMA trend-cycle participation)
Trading style: Moving-average structure + ATR risk model + controlled pyramiding
Time horizon: Intraday-to-swing (depends on timeframe and preset)
This EA:
✔ trades with the trend (slow HMA rising/falling confirmation)
✔ can add positions only under explicit ATR step rules (structured pyramiding)
✔ includes hard safety guards for production use
❌ does NOT use grid, martingale, averaging-down recovery, or hedging logic
❌ is NOT HFT / tick scalping
❌ does NOT “rescue” losing trades by increasing exposure
Core Concept: Fast Timing + Slow Trend Cycle
Instead of relying on subjective trend lines, the EA uses two internally computed Hull Moving Averages on the chart timeframe:
1) Slow HMA = Trend Direction + Cycle Context
The slow HMA determines whether the market is treated as:
- Rising trend (slow HMA rising)
- Falling trend (slow HMA falling)
It also defines “trend-cycle termination” events:
- Slow peak → closes BUY positions and resets the buy cycle
- Slow trough → closes SELL positions and resets the sell cycle
This enforces a trend-cycle discipline instead of holding indefinitely through potential regime shifts.
2) Fast HMA = Entry Trigger (Reversal Timing)
Entries are triggered by a fast HMA turning condition, only if the slow HMA confirms the direction:
- Buy setup: fast HMA turns up while slow trend is rising
- Sell setup: fast HMA turns down while slow trend is falling
This is designed to enter after a local timing inflection, inside the broader confirmed trend.
Trading Logic (High-Level)
1) Signal computation (on-chart timeframe)
On each bar:
- Internal HMA values are computed for fast and slow periods.
- Trend state and setup conditions are evaluated.
2) Entry logic (new bar only)
The EA places a new initial position when:
- Setup condition is met (fast turns + slow confirms trend)
- Execution constraints pass (spread, max positions, cooldown, trade allowed)
3) Optional pyramiding (scale-in)
If enabled, the EA can add trend positions up to a defined limit, only when the market moves in favour:
- Adds occur only if price advances by ScaleInATRStep × ATR beyond the last add price
- A minimum number of bars must pass between adds
- Position size can be constant or scaled via PyramidLotFactor
- Optional rule can block opening the opposite side while one side is open
This makes scaling explicit and testable, rather than discretionary.
4) ATR-defined SL/TP
Each position is protected by:
- ATR SL multiplier + small pip buffer (SLDisplacement)
- ATR TP multiplier
Stops and targets are normalized to tick size and aligned with broker stop/freeze constraints.
5) Trend-cycle exits (structure-based)
When the slow HMA forms:
- A peak → BUY positions are closed, buy cycle resets
- A trough → SELL positions are closed, sell cycle resets
This is a “structure exit” intended to flatten exposure when the slow trend shows reversal characteristics.
6) Trailing stop (profit protection)
After a position reaches a profit threshold:
- trailing activates at WhenToTrail_Pips
- SL trails by TrailBy_Pips
In live trading it runs tick-driven; in Strategy Tester it updates on bar changes for stability.
Risk Management & Execution Controls
AQS-HMA TrendPro is designed with explicit, defensive risk controls:
ATR Risk Model
- ATR-based SL and TP with configurable multipliers
- Extra SL buffer in pips (SLDisplacement)
Production Safety Guards
- Max spread filter (block new entries when spread is too wide)
- Max total positions cap (symbol + magic)
- Cooldown after catastrophic stop (blocks entries for N bars)
Catastrophic Basket Stop (Money-Based Kill Switch)
Optional emergency mechanism:
- If combined EA basket P/L falls below -CatastrophicSL_Money, the EA closes all positions (symbol + magic)
- Can include swap and commission in the basket calculation
This is intended as a hard damage cap during abnormal conditions.
Optional Time Stop
- Can close positions older than TimeStopMinutes
- Designed for environments where holding duration must be constrained
Pre-Trail Risk Cut (Partial Close)
A one-shot defensive reduction per position, before trailing starts:
- If price moves toward SL by a defined fraction of entry→SL distance, the EA can partially close volume once.
- Designed to reduce exposure early when a trade is not behaving as expected.
Important: None of these mechanisms are recovery systems. They are designed to cap risk, not increase it.
Timeframe & Environment Testing
The EA runs on the chart timeframe and should be tested and deployed using symbol/timeframe presets.
Because broker conditions vary (spread, commission, contract specs, stop levels, freeze levels), users should validate:
- spread behaviour during sessions/news
- stop/freeze constraints
- execution quality and slippage tolerance
Configurations Included (preset .set files)
This product includes preset configurations prepared for specific instruments/timeframes (as provided with your package). Each preset is intended as a starting point and should be used only on the matching symbol/timeframe it was prepared for.
Preset .set Files Included (First Purchase)
Your first purchase includes three ready-to-load preset configurations:
- USDJPY
- AUDJPY
- EURAUD
These presets are delivered as .set files and are intended to be used on the exact symbol/timeframe they were prepared for (per the preset naming and instructions). They passed back testing over 7 years as per AQS validation approach (see website for details: www.auroraquantsystems.com)
Additional presets (available on request)
All other symbol presets are available upon order of the EA (i.e., after purchase). Buyers can request additional .set files via:
- MQL5 private messages, or
- support@auroraquantsystems.com
Note: Broker symbol names may differ due to suffixes (e.g., .r, _SB, m). If needed, apply the preset to the equivalent broker symbol and validate execution constraints (spread, stop/freeze levels, contract specs) before live use.
How preset (.set) files are provided
To ensure buyers can trade immediately with the exact tested configurations, preset files are provided upon request after purchase.
Buyers can request preset files via:
- MQL5 private messages, or
- official support contact: support@auroraquantsystems.com
Presets correspond to the same parameters used in testing, including risk and safety settings.
Recommended Usage
- Designed as a trend component within a broader portfolio
- Use one preset per symbol/timeframe
- Demo test before live deployment
- Apply conservative risk settings appropriate to account size and instrument volatility
- If modifying parameters, re-test execution constraints and risk behaviour
Important Notes (Transparency & Risk)
- No martingale, grid, averaging, hedging, or recovery logic
- No performance guarantees
- Results depend on market regime and broker execution
- Past performance is not indicative of future results
- Always demo-test and apply appropriate risk limits before trading live
FAQ
Q1) What type of strategy is this?
AQS-HMA TrendPro is a Hull Moving Average trend-following EA using fast HMA timing with slow HMA confirmation, ATR exits, and optional pyramiding.
Q2) Does it use martingale/grid/recovery?
No. Pyramiding is only allowed after price moves in favour by an ATR-defined step, and exposure is capped by MaxNumTrendTrades and safety controls.
Q3) What timeframe should I use?
Use the timeframe defined by the provided preset. If you change timeframe, re-test thoroughly.
Q4) Does it include safety protections?
Yes — spread guard, max positions cap, catastrophic basket SL (money-based), cooldown after stop, optional time stop, and optional pre-trail partial reduction.
Q5) How do I load the .set files?
Strategy Tester (or attach EA to chart) → Inputs → Load → select the relevant .set file → confirm symbol/timeframe match.
Screenshots provided
- Screenshot 1 – Trend-cycle example on chosen timeframe
- Screenshot 2 – Multi-asset examples
- Screenshot 3 – Equity curve
- Screenshot 4 – Strategy Tester report
- Screenshot 5 – Full input configuration including safety guards
