EA-15852 · Trend Following

Exp_Volume_Weighted_MA_StDev

This EA trades based on signals from the Volume Weighted MA with Standard Deviation channels indicator. It opens buy positions when the VWMA turns upward or when buy signal dots appear, and sell positions on downward turns or sell dots. Position sizing supports multiple margin modes and standard stop-loss/take-profit controls are provided.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsVolume Weighted MA, Standard Deviation Channels
Author—

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.00%0.00%0.00%0—————Not convertible yet

Why this EA never traded: no entry rule survived the conversion.

Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.

Blow-up risk: No blow-up pattern found

None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.

High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →

Strategy analysis

The strategy centers on a Volume Weighted Moving Average (VWMA) combined with Standard Deviation channels, using volume weighting to better identify true trend direction. Entry conditions support three modes: POINT mode triggers trades when signal dots appear in indicator buffers 2-5 (non-EMPTY_VALUE); DIRECT mode detects VWMA line turns (buy when current > previous and previous < the one before, sell on the opposite); WITHOUT mode disables the corresponding signal entirely. Exit conditions mirror the entry modes — buy positions close on sell signal dots or VWMA decline, and sell positions close on buy signal dots or VWMA rise. Position sizing is controlled via the MM parameter and MMMode enumeration, supporting fixed lot size, balance-proportional sizing, and free margin-proportional sizing among other modes. Money management relies on the TradeAlgorithms.mqh library functions (BuyPositionOpen, SellPositionOpen, BuyPositionClose, SellPositionClose) for execution. The strategy uses coefficients dK1 and dK2 to scale the Standard Deviation channel width, with std_period defining the lookback for deviation calculation, identifying how far price has deviated from the weighted mean.

Strengths

  • Volume-weighted MA better reflects true price trends than simple MAs, reducing false signals during low-volume periods
  • Three configurable signal modes with independent entry/exit logic selection provide flexibility for different market conditions
  • Complete stop-loss/take-profit mechanism and multiple money management modes offer comprehensive risk control

Weaknesses

  • Depends on the custom indicator Volume_Weighted_MA_StDev — if the indicator file is missing the EA fails to initialize, increasing deployment complexity
  • DIRECT mode uses only a simple 3-bar VWMA comparison to detect turns, which can generate frequent false signals in choppy markets
  • No spread filter, volatility filter, or other market condition checks — may produce unfavorable trades during high-spread or volatile conditions

Possible improvements

  • Add spread and volatility filters to prevent opening positions under unfavorable market conditions
  • Add more detailed error logging and automatic recovery mechanism for indicator load failures to improve operational stability

Risk assessment

Overall risk: Medium

  • No spread filter — may incur significant losses from high slippage in low-liquidity markets
  • DIRECT mode VWMA turn detection is overly simplistic, potentially triggering frequent false signals leading to repeated open/close cycles

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness2.0
Innovation3.0
Documentation1.0
Overall2.5

Parameters

ParameterDefaultDescription
MM0.1Money management ratio or lot value
MMModeLOTLot mode: free margin/balance/post-loss free margin/post-loss balance/fixed lot
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Slippage deviation allowance
BuyPosOpenPOINTAllow opening long positions
SellPosOpenPOINTAllow opening short positions
BuyPosCloseDIRECTAllow closing long positions
SellPosCloseDIRECTAllow closing short positions
InpInd_TimeframePERIOD_H4Timeframe for iDeMarkerSign indicator
Length12Volume-weighted MA period length
IPCPRICE_CLOSE_Price type applied to indicator calculation
VolumeTypeVOLUME_TICKVolume type: tick volume or real volume
Shift0Indicator offset relative to current bar
PriceShift0Vertical price shift in points
dK11.5Standard deviation channel factor 1
dK22.5Standard deviation channel factor 2
std_period9Standard deviation period
SignalBar1Bar index for signal reading (0=current, 1=last completed)

Similar Trend Following EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.