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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lot value |
MMMode | LOT | Lot mode: free margin/balance/post-loss free margin/post-loss balance/fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Slippage deviation allowance |
BuyPosOpen | POINT | Allow opening long positions |
SellPosOpen | POINT | Allow opening short positions |
BuyPosClose | DIRECT | Allow closing long positions |
SellPosClose | DIRECT | Allow closing short positions |
InpInd_Timeframe | PERIOD_H4 | Timeframe for iDeMarkerSign indicator |
Length | 12 | Volume-weighted MA period length |
IPC | PRICE_CLOSE_ | Price type applied to indicator calculation |
VolumeType | VOLUME_TICK | Volume type: tick volume or real volume |
Shift | 0 | Indicator offset relative to current bar |
PriceShift | 0 | Vertical price shift in points |
dK1 | 1.5 | Standard deviation channel factor 1 |
dK2 | 2.5 | Standard deviation channel factor 2 |
std_period | 9 | Standard deviation period |
SignalBar | 1 | Bar 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.