Hans123 Trader v2
Hans123 Trader v2 is a classic session breakout EA that places pending orders at the high and low of an initial time window (typically the Asian/London session overlap). When price breaks out of the established range, the pending order is triggered and the trade is managed with a fixed take-profit and stop-loss.
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 Hans123 strategy is a well-known session breakout approach whose core concept is to establish a price range during a low-volatility period and then enter on a breakout. Entry conditions: a buy stop order is placed above the highest price of a designated time window (typically the early Asian/London session), and a sell stop order is placed below the lowest price. Exit conditions: fixed take-profit and stop-loss levels, with OCO (One Cancels the Other) logic so that when one side is triggered, the opposite pending order is cancelled. Position sizing uses either a fixed lot size or an equity-based calculation. Money management includes maximum position limits and daily trade count caps. The strategy's underlying logic is that consolidation during quiet sessions accumulates energy that releases as trending moves upon breakout.
Strengths
- Clear and simple logic based on a classic session breakout principle, easy to understand and verify
- Risk is controlled with fixed stop-loss and take-profit, risk per trade is known in advance
- OCO mechanism ensures no simultaneous long and short positions, reducing hedging risk
Weaknesses
- Susceptible to false breakout triggers resulting in stop-loss hits during ranging markets
- Fixed SL/TP does not account for market volatility changes, leading to inconsistent performance across different market conditions
- Session parameters are hardcoded and cannot adapt to different instruments or market conditions
Possible improvements
- Introduce ATR-based dynamic stop-loss and take-profit to adapt to different volatility environments
- Add breakout confirmation mechanisms (e.g., pullback confirmation or volume confirmation) to reduce false breakouts
- Implement a trailing stop feature to lock in more profit during favorable moves
Risk assessment
Overall risk: Low
- Improper session parameter settings may lead to trading during low liquidity periods, increasing slippage risk
- Fixed stop-loss may be insufficient to cover actual losses during extreme market conditions
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
StartTime | 06:00 | Session start time for breakout range origin |
EndTime | 08:00 | Session end time for breakout range termination |
Lots | 0.1 | Fixed trading lot size |
TakeProfit | 50 | Take profit in points |
StopLoss | 30 | Stop loss in points |
MaxTradesPerDay | 2 | Maximum daily trades |
DeleteUntriggered | true | Delete untriggered pending orders after session ends |
MagicNumber | 123456 | Manage positions with specific magic number only; 0 manages all |
Similar Breakout EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.