Exp_BlauSMStochastic
This EA trades based on the BlauSMStochastic custom indicator, which is a smoothed stochastic momentum indicator by William Blau. It supports three trading modes: zero-line breakdown, histogram twist, and cloud twist of the indicator buffers, opening buy/sell positions and closing opposite ones accordingly.
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 | +1.08% | +0.93% | 1.78% | 2 | 50.00% | — | — | — | — | Too few trades |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | No trades |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | No trades |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | No trades |
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 core is based on Blau's Smoothed Stochastic Momentum indicator (BlauSMStochastic), which applies multiple smoothing passes to the traditional stochastic to reduce noise. Entry conditions come in three modes: breakdown mode opens positions when the histogram crosses the zero line, twist mode enters on histogram direction reversal, and cloudtwist mode enters when the upper and lower cloud lines cross. Exit conditions are triggered by opposing signals, with fixed StopLoss and TakeProfit levels applied. Position sizing is controlled via the MM parameter, supporting both LOT and MARGIN modes for lot calculation. Money management uses a fixed ratio or fixed lot approach but lacks dynamic adjustment or pyramiding logic. The overall strategy logic is clear but relies on a single indicator with no additional filtering mechanism.
Strengths
- Three trading modes provide flexibility to adapt to different market conditions
- Multi-smoothed stochastic momentum indicator effectively reduces false signals
- Independent buy/sell open/close switches allow fine-grained control over trading direction
- Fixed stop loss and take profit provide a basic risk control framework
- New bar detection mechanism prevents repeated trading on the same bar
Weaknesses
- Relies entirely on a single indicator without multi-dimensional confirmation or filtering
- Default StopLoss of 1000 and TakeProfit of 2000 points are excessively large for most instruments
- No spread filter — trades can open even when spread is wide
- Lacks trailing stop or trailing take-profit mechanism to lock in floating profits
- Does not check for existing same-direction positions, potentially opening duplicate trades
Possible improvements
- Add multi-indicator confirmation filters such as trend direction or volatility conditions
- Implement spread filtering and position checking to avoid high-cost duplicate entries
- Introduce dynamic stop loss/take profit or trailing stop mechanisms to better protect profits
Risk assessment
Overall risk: Medium
- Lack of position check may cause duplicate entries, increasing risk exposure
- Default SL/TP values are very large and may cause significant losses if not adjusted per instrument
- No spread filter can lead to unnecessary losing trades in high-spread environments
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio or lot size |
MMMode | LOT | Position calculation mode (LOT or MARGIN) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum slippage deviation |
BuyPosOpen | true | Allow buy position open |
SellPosOpen | true | Allow sell position open |
BuyPosClose | true | Allow buy position close |
SellPosClose | true | Allow sell position close |
Mode | twist | Trade signal mode (breakdown/twist/cloudtwist) |
InpInd_Timeframe | PERIOD_H4 | Indicator calculation timeframe |
XMA_Method | MODE_EMA | Smoothing algorithm method |
XLength | 5 | Main smoothing period |
XLength1 | 20 | First smoothing period |
XLength2 | 5 | Second smoothing period |
XLength3 | 3 | Third smoothing period |
XLength4 | 3 | Signal line smoothing period |
XPhase | 15 | Smoothing phase parameter |
IPC | PRICE_CLOSE | Applied price type |
SignalBar | 1 | Signal detection bar index |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.