Open Close
This EA trades based on the relationship between the current bar's open and close prices, entering positions when the open and close price difference meets a specified threshold. It is a simple price-action scalping strategy that operates on lower timeframes, opening trades in the direction of the candle body magnitude.
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
- Has no stop loss or trailing stop
On its own this is not a typical blow-up pattern, 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 the difference between a candle's open and close prices as an entry signal, assuming directional momentum exists when the body exceeds a threshold. Entry conditions trigger when the current bar's open-close difference surpasses a specified parameter value - positive difference for buy, negative for sell. Exit conditions rely solely on fixed take-profit and stop-loss parameters, with no trailing stop or dynamic exit mechanisms. Position sizing uses a fixed lot approach without dynamic adjustment based on account equity or market volatility. Money management lacks percentage-based risk calculation, depending entirely on the user manually setting reasonable lot sizes. The strategy logic is extremely simplistic, failing to consider market structure, trend filtering, or multi-timeframe confirmation.
Strengths
- Simple and intuitive strategy logic, easy to understand and modify
- Based on pure price action without relying on lagging indicators
- Few parameters with clear optimization space
- Defined stop-loss and take-profit for preset risk management
Weaknesses
- No trend filter, likely to suffer frequent losses in ranging markets
- Lacks multi-timeframe confirmation, resulting in low signal reliability
- Fixed lot sizing cannot dynamically adjust based on account risk
- No spread filter, high spreads on lower timeframes can erode scalping profits
- No new bar check, potentially opening multiple positions on the same bar
Possible improvements
- Add a trend filter (e.g., moving average direction) to avoid counter-trend trades
- Implement multi-timeframe confirmation to improve signal quality
- Implement dynamic position sizing based on account equity percentage
- Add spread filter and new bar check to prevent unfavorable entries
Risk assessment
Overall risk: High risk
- No new bar check may cause repeated entries on the same bar leading to overexposure
- No spread filter in a scalping strategy makes it vulnerable to losses from slippage and wide spreads
- Fixed lot sizing without money management allows users to set excessive lots risking account blowup
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
Lots | 0.1 | Fixed trading lot size |
Stop_Loss | 50 | Stop loss in points |
Take_Profit | 50 | Take profit in points |
Open_Close_Diff | 10 | Open-close price difference threshold in points |
Magic_Number | 12345 | EA magic number for identifying orders |
Similar Scalping EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.