roman.mq5
This EA implements a simple alternating buy/sell strategy that reverses direction after each position closes. It opens a position immediately when no position exists, then closes on reaching a fixed TP or SL in points, flipping the direction for the next trade. No technical indicators are used—entry is purely based on the previous trade's outcome.
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 concept of this strategy is a reversal-based mean reversion approach: it assumes that after hitting a take-profit or stop-loss, the price will move in the opposite direction, so it immediately opens a reverse position after each close. Entry conditions are extremely simplistic—when no position exists, it opens a buy or sell based on a boolean flag, defaulting to buy initially. Exit conditions use fixed point-based take-profit (TP=46 points) and stop-loss (SL=31 points), calculated manually by comparing the current price to the open price divided by _Point. Position sizing uses only a fixed lot size (Lot=0.1) with no dynamic adjustment based on account balance, equity, or market volatility. Money management is entirely absent—there is no maximum drawdown limit, no trade frequency cap, and no account equity protection. The strategy relies on zero technical indicators or market structure analysis, making it essentially a pure price-reversal gambling system.
Strengths
- Extremely simple logic, easy to understand and maintain
- Only holds one position at a time, avoiding overexposure risk
- Take-profit exceeds stop-loss (46:31), giving a reward-to-risk ratio greater than 1 per trade
Weaknesses
- No technical indicators or market analysis for entry decisions—direction is essentially random
- Fixed point-based TP/SL instead of dynamic levels like ATR, failing to adapt to varying volatility
- No spread filter, new bar check, or session filter, potentially opening trades under adverse conditions
- Reversal logic will produce consecutive losses in trending markets with no trend identification mechanism
- No money management or risk control mechanisms, prolonged operation may lead to account blow-up
Possible improvements
- Add technical indicator confirmation for entry direction (e.g., MA trend, RSI overbought/oversold) to avoid purely random direction trading
- Use ATR for dynamic TP/SL adjustment, and add spread filter and new bar check mechanisms
Risk assessment
Overall risk: High risk
- No entry analysis—trade direction depends entirely on previous result, equivalent to random trading
- No new bar check—evaluates every tick, potentially causing duplicate signals
- No spread filter—stop-losses can easily be triggered in high-spread environments
- No money management—fixed lot size ignores changes in account size
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
Lot | 0.1 | Fixed trade lot size |
TP | 46 | Take profit in points |
SL | 31 | Stop loss in points |
Similar Mean Reversion EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.