Exp_MBKAsctrend3
This EA trades based on the MBKAsctrend3 custom indicator, which uses a weighted combination of three Williams Percent Range (WPR) indicators with different periods to generate buy and sell signals. It opens positions on signal bar crossovers and closes opposite positions when reversal signals appear, with configurable money management and stop-loss/take-profit levels.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
The strategy core is based on a weighted combination of three WPR indicators with different periods (9/33/77), calculating a composite momentum signal through weights (1.0/3.0/1.0) to determine trend direction. Entry conditions: a buy signal triggers when the indicator's upper buffer (UpValue) shows a non-zero, non-empty value on the specified signal bar; a sell signal triggers when the lower buffer (DnValue) shows such a value. Exit conditions include two types: first, closing opposite positions when a reversal signal appears (e.g., closing shorts when an upper signal emerges), and second, fixed-point stop-loss and take-profit levels. Position sizing is controlled by the MM parameter, where negative values represent fixed lot sizes and positive values represent deposit-proportional sizing. The EA also includes a historical lookback logic that searches backward through bars for the nearest closing signal when no direct close signal is received, determining whether existing positions should be liquidated. The strategy defaults to the H4 timeframe, classifying it as a medium-term momentum-following system.
Strengths
- The multi-period WPR weighted combination effectively smooths noise from a single indicator, improving signal reliability
- Flexible money management supporting both fixed lot size and deposit-proportional sizing adapts to different trading needs
- Comprehensive buy/sell/close permission controls allow flexible configuration for long-only, short-only, or bidirectional trading
- The IsNewBar mechanism prevents duplicate trades within the same bar, reducing overtrading risk
Weaknesses
- The historical lookback closing logic (lines 155-181) iterates through all historical bars, potentially causing severe performance issues with large datasets
- Default stop-loss of 1000 points and take-profit of 2000 points are excessively large and may be unsuitable for many instruments
- Lacks spread filter and volatility filter, which may produce unfavorable trades in high-spread or low-volatility environments
- Insufficient validation of the indicator handle; the EA continues running even if OnInit fails to obtain it
Possible improvements
- Add a maximum lookback bar limit to the historical closing logic to avoid performance degradation
- Add spread filter and ATR volatility filter to prevent opening positions under unfavorable market conditions
- Return INIT_FAILED in OnInit when the indicator handle cannot be obtained instead of continuing to run
Risk assessment
Overall risk: Medium
- The EA does not stop running when the indicator handle fails to initialize, potentially executing trading logic without valid signals
- The unlimited historical lookback iteration could traverse tens of thousands of bars in extreme cases, blocking the trading thread
- No spread check means slippage in illiquid markets could far exceed expectations
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | -0.1 | Trade share; negative=fixed lots, positive=deposit percentage |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum price slippage deviation in points |
BuyPosOpen | true | Allow buy position open |
SellPosOpen | true | Allow sell position open |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H4 | MBKAsctrend3 indicator timeframe |
WPRLength1 | 9 | WPR1 indicator period |
WPRLength2 | 33 | WPR2 indicator period |
WPRLength3 | 77 | WPR3 indicator period |
Swing | 3 | Swing parameter |
AverSwing | -5 | Average swing parameter |
W1 | 1.0 | WPR1 indicator weight |
W2 | 3.0 | WPR2 indicator weight |
W3 | 1.0 | WPR3 indicator weight |
SignalBar | 1 | Entry signal bar index |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.