21hour
The 21hour EA is a session-based trading system that operates within a specific 21-hour trading window, likely entering and exiting positions based on time-of-day rules combined with technical indicators. It systematically opens trades during designated active hours and closes or manages them outside the window or when conditions change. The EA appears designed to exploit intraday price patterns that manifest during specific trading sessions.
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 | -7.10% | -6.20% | 9.26% | 144 | 42.70% | -1.55 | -0.77 | 5 | −$5.20 | Reliable |
| GBPUSD | -11.44% | -10.02% | 13.47% | 144 | 40.60% | -1.95 | -0.85 | 6 | −$8.16 | Reliable |
| USDJPY | -5.11% | -4.45% | 7.85% | 144 | 46.20% | -0.89 | -0.65 | 8 | −$3.46 | Reliable |
| XAUUSD | -51.93% | -45.40% | 77.29% | 152 | 45.70% | -0.53 | -0.67 | 9 | −$36.02 | Reliable |
Profitable on 0 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 | 23% | +1.59% 2026-09 | -2.54% 2026-07 |
| GBPUSD | 15% | +3.66% 2026-01 | -3.12% 2026-04 |
| USDJPY | 23% | +1.07% 2026-04 | -3.71% 2026-09 |
| XAUUSD | 54% | +30.79% 2026-01 | -37.36% 2026-02 |
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 core strategy of this EA is session trading, exploiting price movement characteristics during specific time windows in the forex market. Entry conditions are likely based on specific time points within a 21-hour cycle, confirmed by trend or momentum indicators before opening positions. Exit conditions include automatic closing at session end, stop-loss and take-profit triggers, and closing on opposing signals. Position sizing may use fixed lots or a percentage of account balance. Money management likely limits the maximum number of open positions per trading window to control risk. The overall strategy relies on statistical edge during specific sessions but lacks dynamic adaptation to structural market changes.
Strengths
- Session trading strategy exploits statistical edge during high-volatility market periods
- Fixed trading windows help avoid slippage and false signals during low-liquidity hours
- Systematic execution eliminates emotional interference and maintains trading discipline
Weaknesses
- Relies on fixed time windows, unable to adapt to market structure changes like holidays or special events
- Lacks multi-timeframe confirmation, may enter against larger trend direction
- 21-hour window may span multiple trading sessions, ignoring liquidity differences across sessions
Possible improvements
- Add multi-timeframe trend filter to only trade in the direction of the larger timeframe trend
- Incorporate liquidity detection and spread filter to avoid trading during low-liquidity periods
Risk assessment
Overall risk: Medium
- Fixed-time trading may expose to massive risk during sudden news events
- Insufficient position checks may lead to duplicate entries
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
StartHour | 0 | Trading start time (hour) |
EndHour | 21 | Trading end time (hour) |
LotSize | 0.1 | Lot size per trade |
StopLoss | 50 | Stop loss in points |
TakeProfit | 100 | Take profit in points |
MagicNumber | 12345 | EA magic number for identifying orders |
MaxTrades | 3 | Maximum simultaneous positions |
Similar Session Trading EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.