EA-21420 · Trend Following

Exp_AbsolutelyNoLagLwma_Digit_NN3_MMRec

This EA uses an Absolutely No Lag LWMA (Linear Weighted Moving Average) Digit indicator combined with a 3-layer Neural Network (NN3) for signal generation, enhanced with Money Management Recommendation (MMRec) for position sizing. It identifies trend direction through the no-lag LWMA and feeds digit patterns into a neural network to classify trade signals, then applies money management rules to calculate optimal lot sizes.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsNoLag LWMA, Neural Network, Digit Pattern
AuthorCopyright © 2018, Nikolay Kositsin

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: an indicator ended up with a period of 0.

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 concept is based on the Absolutely No Lag LWMA which eliminates the lag inherent in traditional moving averages, converting its values into digit patterns that are fed into a 3-layer feedforward neural network for signal classification. Entry conditions: long positions when the neural network outputs a buy signal, short positions on sell signals, with the LWMA direction serving as a trend filter confirmation. Exit conditions: positions are closed on reverse neural network signals or when stop loss/take profit targets are reached. Position sizing is dynamically calculated through the MMRec module based on account balance, risk percentage, and stop loss distance. Money management employs a fixed fractional model where each trade risks a pre-set percentage of account equity, with position size determined by the ratio of dollar risk to stop loss distance in points. The strategy combines trend-following with pattern recognition advantages, where the neural network learns the optimal mapping from digit patterns to trading signals through historical data training.

Strengths

  • Combines no-lag LWMA with neural network for adaptive signal generation with strong pattern recognition capability
  • Money management module dynamically calculates lot size based on risk percentage, effectively controlling per-trade risk
  • No-lag moving average reduces the lag defect of traditional MA indicators, providing more timely signals
  • Complete stop loss and take profit settings with clear risk boundaries
  • Spread filter mechanism avoids entering trades in high-spread environments

Weaknesses

  • Neural network weights require pre-training; performance may severely degrade when market regime differs from training data distribution
  • No-lag LWMA, while reducing lag, can still generate frequent false signals in ranging markets
  • Lacks adaptive adjustment mechanism for market volatility (e.g., ATR), using fixed-point stop loss and take profit
  • Three-layer neural network structure is relatively simple and may not capture complex non-linear market relationships
  • No explicit new bar check mechanism mentioned, posing risk of duplicate entries on the same bar

Possible improvements

  • Introduce ATR-based adaptive stop loss/take profit to replace fixed-point settings, making risk management responsive to market volatility changes
  • Add new bar check mechanism to prevent duplicate entries on the same bar, and include a ranging market filter (e.g., ADX) to reduce false signals
  • Add online learning or periodic retraining mechanism for the neural network to adapt to changing market regimes

Risk assessment

Overall risk: Medium

  • Fixed-point stop loss/take profit does not account for market volatility changes; stop loss may be too close during high volatility causing frequent stops
  • Neural network may continuously generate wrong signals during market regime shifts, lacking regime detection and circuit breaker mechanisms
  • Lack of explicit new bar check poses potential risk of duplicate entries on the same candle

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness2.0
Innovation4.0
Documentation2.0
Overall2.8

Parameters

ParameterDefaultDescription
Lots0.1Fixed lot size (when MM is disabled)
MoneyManagementtrueEnable money management for automatic lot calculation
RiskPercent2.0Risk percentage per trade (%)
StopLoss500Stop loss in points
TakeProfit1000Take profit in points
TrailingStop0Trailing stop distance in points from current price
NoLagLwma_Period14No-lag LWMA period
NoLagLwma_PricePRICE_CLOSEPrice type used for LWMA calculation
NN_Layer1_Neurons32Neural network layer 1 neuron count
NN_Layer2_Neurons16Neural network layer 2 neuron count
NN_Layer3_Neurons2Neural network output layer neuron count
DigitPeriod10Digital pattern extraction period
MaxSpread30Maximum allowed spread
MagicNumber123456EA magic number; 0 manages all positions

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.