EA-14981 · Momentum

Exp_Stochastic_Histogram

This EA trades based on the Stochastic Histogram custom indicator, supporting two signal modes: level-based (overbought/oversold) and crossover-based. It opens buy positions when the stochastic signals bullish momentum and sell positions when bearish momentum is detected, with configurable position closing on opposite signals. Money management is handled via the included TradeAlgorithms library with multiple margin modes.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMomentum
RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsStochastic Histogram
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 concept is based on momentum signals from the Stochastic Histogram custom indicator. Entry conditions operate in two modes: in Levels mode, buy signals trigger when the histogram column crosses above zone 0 and sell signals trigger when it crosses below zone 2; in Cross mode, buy signals occur when the upper line crosses above the lower line and sell signals on the opposite crossover. Exit conditions are triggered by opposing signals, with BuyPosClose and SellPosClose parameters controlling whether positions are closed on reversal signals. Position sizing defaults to a fixed lot mode (LOT) but also supports multiple money management modes including balance-based and free margin-based allocation. Stop loss is set at 1000 points and take profit at 2000 points, yielding a risk-reward ratio of 1:2. Signal evaluation uses the SignalBar parameter (default bar 1, the last closed bar) which avoids repaint issues from using the current unclosed bar.

Strengths

  • Dual-mode signal system (Levels/Cross) provides flexible strategy selection
  • Uses closed bar (SignalBar=1) for signal evaluation, avoiding repaint issues
  • New bar detection mechanism (IsNewBar) prevents duplicate trades within the same bar
  • 1:2 risk-reward ratio is reasonably designed for positive long-term expectancy
  • Independent buy/sell switches allow long-only or short-only trading for trend filtering
  • Multiple money management modes accommodate different risk preferences

Weaknesses

  • Fixed 1000-point SL and 2000-point TP are excessively large without ATR-based volatility adaptation
  • Depends on custom Stochastic_Histogram indicator, increasing deployment complexity and failure risk
  • No spread filter, which may lead to unfavorable fills in high-spread environments
  • No maximum position count limit, potentially causing overtrading in choppy markets
  • Static variables lose state on EA restart, potentially missing signals
  • Lacks drawdown control and maximum loss limit mechanisms

Possible improvements

  • Introduce ATR-based dynamic stop loss and take profit for volatility-adaptive position management
  • Add spread filter and maximum position count limit to reduce unfavorable fills and overtrading
  • Implement drawdown control and equity curve protection mechanisms such as max drawdown percentage circuit breaker

Risk assessment

Overall risk: Medium

  • Fixed large stop loss (1000 points) is excessive for low-volatility instruments and insufficient for high-volatility ones
  • No drawdown control mechanism, risking sustained losses during extreme market conditions
  • Custom indicator load failure only prints a log and returns INIT_FAILED with no retry/fallback mechanism
  • No spread filter, potentially suffering severe slippage during low-liquidity sessions

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness3.0
Innovation2.0
Documentation1.0
Overall2.3

Parameters

ParameterDefaultDescription
MM0.1Money management parameter controlling lot size
MMModeLOTPosition sizing mode (free margin/balance/net free margin/net balance/fixed lot)
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum slippage deviation
BuyPosOpentrueAllow opening long positions
SellPosOpentrueAllow opening short positions
BuyPosClosetrueAllow closing long on reverse signal
SellPosClosetrueAllow closing short on reverse signal
InpInd_TimeframePERIOD_H4Indicator calculation timeframe
TModeCrossSignal mode (level/crossover)
KPeriod5Stochastic K period
DPeriod3Stochastic D period
Slowing3Stochastic slowing period
MA_MethodMODE_SMAMoving average method
Price_fieldSTO_LOWHIGHStochastic price field (high-low/close)
HighLevel60Overbought level
LowLevel40Oversold level
SignalBar1Bar index for signal detection

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.