EA-20397 · Breakout

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

CategoryBreakout
RiskLow
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1
IndicatorsRange High/Low, Pivot
AuthorCopyright © 2018, Vladimir Karputov

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.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

Code quality3.0
Strategy logic3.0
Risk management4.0
Robustness3.0
Innovation2.0
Documentation2.0
Overall2.8

Parameters

ParameterDefaultDescription
StartTime06:00Session start time for breakout range origin
EndTime08:00Session end time for breakout range termination
Lots0.1Fixed trading lot size
TakeProfit50Take profit in points
StopLoss30Stop loss in points
MaxTradesPerDay2Maximum daily trades
DeleteUntriggeredtrueDelete untriggered pending orders after session ends
MagicNumber123456Manage 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.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.