EA-11407 · Momentum

Exp_BnB

This EA trades based on the BnB (Bulls and Bears) custom indicator, using a smoothed momentum approach to detect trend direction changes. It opens buy positions when the indicator line crosses above the signal line and sell positions on the reverse crossover, with configurable money management and position closing logic.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMomentum
RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsBnB (custom), Smoothed Volume-weighted Momentum
AuthorCopyright © 2014, Nikolay Kositsin

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Custom indicator approximated
GBPUSD0.00%0.00%0.00%0—————Custom indicator approximated
USDJPY0.00%0.00%0.00%0—————Custom indicator approximated
XAUUSD0.00%0.00%0.00%0—————Custom indicator approximated

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 core strategy of this EA is based on the BnB (Bulls and Bears) custom indicator, which uses a configurable smoothing algorithm (supporting SMA, EMA, JJMA, T3, and other methods) to smooth volume-weighted bullish and bearish momentum. Entry conditions: when the indicator line Ind is above the signal line Sign, it indicates a bullish trend, and if the previous bar shows Ind crossing below Sign, a buy signal is triggered; conversely, when Ind is below Sign indicating a bearish trend, if Ind crosses above Sign on the previous bar, a sell signal is triggered. Exit conditions are automatically triggered by trend reversal—sell position closing occurs in bullish trends and buy position closing in bearish trends, supplemented by configurable StopLoss and TakeProfit parameters. Position sizing supports five modes: based on free margin, balance, loss-adjusted free margin, loss-adjusted balance, and fixed lot size. Money management is controlled by the MM parameter for risk ratio and the MMMode parameter for calculation mode. The strategy defaults to H4 timeframe with SignalBar=1, using the previously closed bar's signal to avoid signal drift from unclosed bars.

Strengths

  • Supports multiple smoothing algorithms (T3, JJMA, etc.) for flexible adaptation to different market conditions
  • Uses SignalBar=1 with closed bar signals to avoid signal drift and frequent recalculation
  • Built-in five money management modes providing flexible position sizing options
  • Allows independent control of buy/sell opening and closing, enabling flexible strategy customization
  • Implements NewBar detection to prevent repeated trading within the same bar

Weaknesses

  • Default StopLoss of 1000 points and TakeProfit of 2000 points are excessively large for most instruments
  • No position check mechanism—may open duplicate positions in the same direction
  • Lacks spread filtering, which could lead to unfavorable fills in high-spread environments
  • Depends on a custom BnB indicator file; the EA cannot run without it
  • No trailing stop or break-even mechanism, limiting profit protection capability

Possible improvements

  • Add position checking logic to avoid duplicate openings in the same direction that lead to overexposure
  • Add spread filtering and trailing stop functionality to improve trade quality and profit protection

Risk assessment

Overall risk: Medium

  • No same-direction position check, potentially leading to duplicate openings and overexposure
  • Default SL/TP values are very large; if users don't adjust them, they could face massive losses in extreme market conditions

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness3.0
Innovation2.0
Documentation1.0
Overall2.5

Parameters

ParameterDefaultDescription
MM0.1Deposit percentage or fixed lots; negative = fixed lots
MMModeLOTLot sizing mode: Free margin / Balance / Free margin minus loss / Balance minus loss / Fixed lots
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage in points
BuyPosOpentrueAllow opening long positions
SellPosOpentrueAllow opening short positions
BuyPosClosetrueAllow closing long positions
SellPosClosetrueAllow closing short positions
InpInd_TimeframePERIOD_H4Indicator calculation timeframe
XMA_MethodMODE_T3Smoothing algorithm type
XLength14Smoothing period length
XPhase15Smoothing phase parameter, affects sensitivity
VolumeTypeVOLUME_TICKVolume type: tick volume or real volume
SignalBar1Bar index for signal detection, 1 = last closed bar

Similar Momentum 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.