N seconds N points
This EA is a scalping system that trades based on time and price movement criteria — entering positions after N seconds and targeting N points of profit. It uses a simple fixed-interval entry mechanism with quick profit-taking, designed for high-frequency short-duration trades on low-spread instruments.
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.23% | +1.07% | 3.15% | 131 | 54.60% | 0.29 | 0.39 | 5 | +$1.21 | Reliable |
| GBPUSD | -1.21% | -1.05% | 5.08% | 131 | 48.50% | -0.17 | -0.24 | 5 | −$0.75 | Reliable |
| USDJPY | -0.91% | -0.79% | 6.86% | 129 | 47.70% | -0.13 | -0.13 | 8 | −$0.83 | Reliable |
| XAUUSD | -22.32% | -18.83% | 67.24% | 137 | 48.50% | 0.16 | -0.33 | 7 | −$14.59 | Reliable |
Profitable on 1 of 4 markets with reliable results.
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.
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 54% | +1.47% 2026-08 | -1.24% 2026-09 |
| GBPUSD | 38% | +2.34% 2026-05 | -2.39% 2026-03 |
| USDJPY | 62% | +2.04% 2026-09 | -3.84% 2026-08 |
| XAUUSD | 38% | +77.68% 2026-02 | -25.64% 2026-04 |
From the backtest equity curve, sampled about every two days; only reliable results.
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 centers on detecting price movement after a specific time window (N seconds) and entering trades when a minimum price movement threshold (N points) is met. Entry conditions involve waiting for the N-second timer to elapse, then checking if price movement has reached the configured point threshold before entering in the direction of the move. Exit conditions use a fixed take-profit target of N points, embodying a quick-in-quick-out scalping approach, though stop-loss may also be present. Position sizing relies on fixed lot sizes or simple account-balance-based calculations without sophisticated position management logic. Money management lacks strict risk-based mechanisms with no dynamic position sizing based on volatility or risk percentage. The overall strategy is straightforward but lacks market structure analysis and trend filtering, making it vulnerable to repeated stop-outs in ranging markets.
Strengths
- Strategy logic is simple and clear, easy to understand and optimize
- Quick market entry and exit reduces exposure time risk
- Scalping mode limits per-trade loss, suitable for small accounts
Weaknesses
- Lacks trend filtering, vulnerable to repeated stop-outs in ranging markets
- No spread filter mechanism — scalping in high-spread environments may lose money
- Position sizing is overly simplistic without volatility or risk ratio consideration
- Missing new bar check may cause repeated entries on the same candle
- Time window mechanism is too mechanical without considering market liquidity changes
Possible improvements
- Add a trend filter (e.g., MA direction) to avoid counter-trend trades
- Implement spread checking and volatility-adaptive position sizing
- Add new bar check to prevent repeated entries on the same candle
Risk assessment
Overall risk: Caution
- Scalping profits can be entirely consumed when spreads widen
- Missing new bar check may cause repeated entries creating excessive exposure in short time
- Fixed lot sizing doesn't adjust with account size, amplifying risk for larger accounts
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
N_Seconds | 60 | Entry judgment time window (seconds) |
N_Points | 10 | Target profit points |
Lots | 0.1 | Fixed trading lot size |
StopLoss | 50 | Stop loss in points |
TakeProfit | 10 | Fixed take profit points (20 pts) |
MagicNumber | 12345 | EA unique identifier number |
Similar Scalping EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.