Exp_Bezier_StDev
This EA trades based on the Bezier_StDev custom indicator, which combines Bezier curve smoothing with standard deviation bands to identify overbought/oversold conditions. It supports three signal modes (point-based, directional, and disabled) for both entry and exit, and uses configurable money management with stop loss and take profit. The strategy opens buy positions on upward turning points and sell positions on downward turning points of the smoothed curve.
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 | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.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 core strategy of this EA is based on mean reversion using Bezier curve smoothing overlaid with standard deviation bands. Entry conditions come in three modes: POINT mode reads the indicator's signal buffers (buffer 3 for buy signals, buffer 2 for sell signals); DIRECT mode detects inflection points by comparing three consecutive Bezier curve values (V-shaped reversal patterns) to open positions; WITHOUT mode disables the signal entirely. Exit conditions also support three modes: POINT mode uses signal buffers, while DIRECT mode detects trend reversal by comparing curve slope direction changes to close positions. Position sizing offers five modes (free margin, balance, loss-adjusted free margin, loss-adjusted balance, and fixed lot), controlled by the MM parameter for risk proportion. Money management includes configurable stop loss and take profit, defaulting to 1000 and 2000 points respectively, yielding a 1:2 risk-reward ratio. The strategy operates on the H4 timeframe by default and uses SignalBar=1, meaning signals from the last closed bar, which avoids signal flickering issues from unclosed bars.
Strengths
- Flexible signal mode design with independent POINT/DIRECT/WITHOUT configuration for entry and exit, adaptable to different market conditions
- Uses SignalBar=1 to calculate signals from closed bars only, avoiding false trades caused by signal flickering on unclosed bars
- Built-in new bar detection mechanism (CIsNewBar) prevents duplicate position openings within the same bar
- Clear stop loss and take profit parameters with a reasonable default risk-reward ratio of 1:2
- Supports five position sizing modes providing high flexibility in money management
Weaknesses
- Depends on the custom Bezier_StDev indicator whose source code is not visible, making algorithm correctness unverifiable
- DIRECT mode uses only 2-3 bars to detect inflection points, prone to frequent false signals in choppy markets
- No spread filter or trading session filter, potentially disadvantageous during high-spread periods
- Stop loss of 1000 points and take profit of 2000 points are wide ranges that may not suit all instruments
- Lacks maximum position count limits and overall portfolio risk control mechanisms
Possible improvements
- Add a spread filter mechanism to pause new positions when spread exceeds a threshold
- Add maximum concurrent position limits and drawdown protection mechanisms
- Consider adding trading session filters to avoid low-liquidity periods
Risk assessment
Overall risk: Medium
- Dependency on external custom indicator; failure to load will prevent the EA from running
- Simple inflection point logic in DIRECT mode may cause frequent open/close cycles in choppy markets, leading to slippage losses
- No maximum position limit, potentially accumulating excessive exposure during extreme market conditions
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management parameter, lots or ratio |
MMMode | LOT | Margin calculation mode (fixed lots, balance percentage, etc.) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | POINT | Buy entry signal mode |
SellPosOpen | POINT | Sell entry signal mode |
BuyPosClose | DIRECT | Close long positions on reverse signal |
SellPosClose | DIRECT | Allow closing short positions on signal reversal |
InpInd_Timeframe | PERIOD_H4 | trend_arrows indicator timeframe |
BPeriod | 8 | Bessel curve period |
T | 0.5 | Smoothing coefficient (0 to 1) |
IPC | PRICE_WEIGHTED_ | Applied price type |
dK | 2.0 | Standard deviation channel multiplier |
std_period | 9 | Standard deviation period |
SignalBar | 1 | Signal bar index (0 for current bar) |
Similar Mean Reversion EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.