HMA Scalper Pro EA
- Experts
- Version: 1.2
- Updated: 20 July 2026
- Activations: 10
HMA Scalper Pro EA — Automated Trading Advisor Based on Hull Moving Average (HMA) for MetaTrader 5
OVERVIEW
HMA Scalper Pro EA is a professional trading robot (Expert Advisor) for MetaTrader 5 that trades in the direction of the Hull Moving Average (HMA). The HMA indicator determines the current trend direction, and the EA opens trades in that direction, enhanced by Smart Risk capital management, adaptive grid trading, trailing stop, breakeven, and time filters.
The EA supports both Netting and Hedging accounts and is suitable for trading gold (XAU/USD), Forex currency pairs, oil, indices, and cryptocurrencies.
WHY CHOOSE HMA SCALPER PRO EA
- Hull Moving Average signals — entries based on HMA direction, which responds to trend changes faster than classic moving averages
- Multi-timeframe HMA calculation — the direction can be calculated on a separate timeframe, independent of the chart timeframe
- Smart Risk instead of classic martingale — each subsequent grid order uses a smaller lot size than the previous one
- Adaptive grid trading — fixed step, order limit, automatic cycle restart after full position closure
- Comprehensive position protection — Stop Loss, Take Profit, Trailing Stop and Break Even
- Time filter — by weekdays and hours, using the broker's server time
- Spread control and daily trade limit
- Automatic volume normalization by broker lot step — prevents errors with invalid position size
- StopLevel and FreezeLevel verification — correct placement of protective levels even with brokers that have strict restrictions
- Automatic lot reduction when free margin is insufficient — prevents position opening errors
- Trading direction selection — BUY ONLY, SELL ONLY and BOTH
- Information panel — current HMA signal, profit statistics, active positions and protection status
- Full support for both Netting and Hedging accounts
KEY FEATURES
- Hull Moving Average — accurate trend direction signals with reduced lag
- Smart Risk — automatic lot reduction for each subsequent grid order
- Grid Trading — adaptive grid strategy with automatic level management
- Trailing Stop — dynamic profit protection
- Break Even — automatic position move to breakeven
- Stop Loss & Take Profit — loss limitation and profit locking
- Time Filter — trading by weekdays and time of day
- Trade Direction — BUY ONLY, SELL ONLY or BOTH
- Spread Control — protection from trading during high spread
- Daily Limit — maximum trades per day restriction
- Netting & Hedging — full support for both account types
- Trade History — visual trade history on the chart
COMPATIBILITY
- Platform: MetaTrader 5 (MT5)
- Account types: Netting and Hedging
- Instruments: XAU/USD (gold), Forex currency pairs, oil (Brent, WTI), indices, cryptocurrencies (BTC, ETH and others)
- Timeframes: Any (HullTimeframe configurable)
DESCRIPTION
The core of HMA Scalper Pro EA is the Hull Moving Average (HMA) — an advanced moving average that smooths price data while responding to changes faster than classic MAs. The EA tracks the HMA direction and trades in that direction: when the line moves up, buys are considered; when it moves down, sells are considered.
HMA is calculated on a selected timeframe, which can be set independently of the chart timeframe. Thanks to multi-timeframe analysis, the EA can use the trend direction from a higher timeframe while maintaining entry accuracy on the working chart. This is especially convenient for scalping, when signals are filtered by a higher timeframe and execution occurs on a lower one.
Capital management is built on the Smart Risk system. The base volume is calculated from the balance, and each subsequent grid order uses a smaller lot size than the previous one — unlike classic martingale, where orders double and the deposit load increases exponentially.
Additional features include adaptive grid trading, Stop Loss, Take Profit, trailing stop, breakeven, time and distance entry filters, spread control, daily trade limit, and optional time filter by weekdays and hours. The information panel shows the current HMA signal, profit statistics, active positions and protection status, while trade history is displayed directly on the chart.
HOW THE EA WORKS
At the close of each bar, the EA calculates the Hull Moving Average on the specified timeframe and determines its direction. A rising HMA generates a buy condition, a falling HMA generates a sell condition. The trade is executed if the signal direction matches the selected trading mode.
Before opening a trade, safety rules are applied:
- Interval and distance check — minimum time and distance between trades according to the selected filter mode
- Spread check — current spread must not exceed the set limit
- Trading session check — market must be open per broker settings
- Time filter check — current time must fall within the allowed period
- Free margin check — sufficient funds to open the position
The volume is adjusted to broker requirements if necessary. Once opened, the position is managed with Stop Loss, Take Profit, Trailing Stop and Break Even. With grid trading enabled, the EA can add orders as the market moves against the position.
EA PARAMETERS
Hull Scanner Settings
HullTimeframe — timeframe for HMA calculation. Lower timeframes react faster; higher ones filter noise better. Default M15.
HullPeriod — HMA calculation period. Higher values smooth the line and slow signals; lower values make it more sensitive.
HullDivisor — HMA speed coefficient. Lower values increase sensitivity and produce earlier signals.
HullPrice — price type for HMA (Close, Open, High, Low). Close price is most commonly used.
Lot Settings
LotMethod — position volume calculation method: fixed lot or Smart Risk (automatic calculation from balance).
FixedLotSize — lot size in fixed volume mode.
Grid Trading Settings
UseGrid — enables or disables grid trading.
GridStep — distance in points between grid levels.
MaxGridOrders — maximum number of orders in one direction.
Trading Direction
TradeDirection — trading direction: BUY ONLY, SELL ONLY or BOTH.
Stop Loss & Take Profit Settings
StopLoss — Stop Loss size in points (0 — disabled).
TakeProfit — Take Profit size in points (0 — disabled).
Trailing Stop & BreakEven Settings
TrailingStop — trailing stop activation.
TrailingStart — profit in points to activate trailing.
TrailingDistance — trailing stop distance from price.
TrailingStep — minimum trailing movement step.
BreakEven — breakeven activation.
BreakEvenStart — profit in points to activate breakeven.
BreakEvenOffset — stop loss offset from entry point.
Trading Rules
MaxSpread — maximum allowed spread in points.
MinutesBetweenTrades — minimum interval between trades in minutes.
FilterMode — entry filter mode: time only, distance only, OR, or AND.
MagicNumber — unique identifier for EA trades.
TradeComment — comment for trades.
DailyLimit — daily limit activation.
MaxOrdersPerDay — maximum trades per day.
Time Filter
EnableTimeFilter — time filter activation (disabled by default).
TradeMonday — TradeSunday — trading permission by weekday.
StartHour / StartMinute — start of the allowed period.
EndHour / EndMinute — end of the allowed period.
Display Settings
ShowPanel — information panel display.
ShowProfitStats — profit statistics for day, week, month.
ShowTradeHistory — trade history on chart.
BuyTradeColor / SellTradeColor — buy and sell trade colors.
TradeFontSize — trade history font size.
PanelBackColor / PanelTextColor / PanelEditColor — information panel colors.
SMART RISK
Smart Risk is a mode that automatically calculates position volume based on account balance. Trade volume grows with the deposit and decreases when it shrinks, so the account load remains proportionate to its current state.
The key feature of this mode appears during grid operation: each subsequent grid order uses a smaller lot size than the previous one. This fundamentally differentiates Smart Risk from classic martingale, where each subsequent order doubles and the deposit load grows exponentially. Reducing volume as the grid expands makes capital management more conservative and predictable.
Before opening any position, the EA checks available free margin and, if necessary, reduces the volume to align with the broker's allowed lot step. This prevents opening trades with incorrect or invalid volume.
GRID
With grid trading enabled, the EA is not limited to a single position. As the market moves against the open side, it adds new orders at a defined step in points (GridStep), forming an averaging grid. The total number of orders in one direction is limited by the MaxGridOrders parameter, keeping overall risk under control.
The EA maintains its own record of grid levels and entry prices, so the grid logic works equally correctly on both Netting and Hedging accounts. Once the side is fully closed, the grid counter resets, and the next signal starts a new cycle from the first level.
TIME FILTER
The time filter allows restricting trading to specific weekdays and times of day. It is controlled by the EnableTimeFilter parameter and is disabled by default — in this case the EA can trade at any time.
When the filter is enabled, trading is allowed only if both conditions are met: the current weekday is marked as allowed and the current time falls within the defined window. If the start time is later than the end time, the window is treated as crossing midnight. All checks are performed using the broker's server time.
TRADE DIRECTION
BUY ONLY — the EA opens buy trades only; sell signals are ignored.
SELL ONLY — the EA opens sell trades only; buy signals are ignored.
BOTH — both sides are allowed. The direction of each trade is determined by the HMA direction.
INFORMATION PANEL
The built-in information panel on the chart displays:
- Current Hull Moving Average signal (green, red, or gray)
- Buy and sell grid level counts
- Profit statistics for the day, week, month, and entire period
- Status of protective functions (Trailing, BreakEven, Stop Loss, Take Profit)
Trade history is displayed directly on the chart: arrows mark entries and exits, dotted lines connect trades of the same position, and profit/loss labels appear next to each closed position.
RECOMMENDED INSTRUMENTS
- Gold (XAU/USD) — high volatility and strong trending movements pair well with HMA signals.
- Forex currency pairs — EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD and others. High liquidity and tight spreads suit scalping.
- Oil (Brent, WTI) — impulse movements provide opportunities for both trend entry and grid trading.
- Cryptocurrencies (BTC, ETH) — 24/7 trading and high price dynamics.
It is recommended to optimize parameters for each trading instrument and timeframe in the Strategy Tester beforehand.
CONCLUSION
HMA Scalper Pro EA combines Hull Moving Average signals, Smart Risk capital management, adaptive grid trading, time filtering, and comprehensive position protection in one fully automated trading advisor for MetaTrader 5. Flexible parameter configuration, two volume calculation modes, and full support for Netting and Hedging accounts make the EA a universal solution for automated trading across various financial markets.
The EA does not guarantee profit. Trading results depend on market conditions, selected settings, broker conditions, and the trader's approach to risk management. Before using on a live account, be sure to test the EA in the Strategy Tester and on a demo account.


supporto ottimo, gentilissimo Vladimir. in 4 giorni col suo aiuto ho impostato XAU USD e con 500 dollari faccio 20/35 dollari al giorno. bravo!!!grazie