EA-16885 · Session Trading

Opening and Closing on time v2

This EA opens and closes positions at specified times of day, allowing traders to automate trading during preferred market sessions. It places buy or sell orders at user-defined hours and minutes, and closes all or specific positions at designated times. The strategy is purely time-based without any technical indicator confirmation.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM5, M15, H1, H4
IndicatorsTime
AuthorCopyright © 2016, 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

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 is session-based trading, automatically executing trades at specific market sessions (such as London open or New York open) to capitalize on their higher volatility and liquidity. Entry conditions rely entirely on user-defined time parameters; when server time reaches the specified opening hour and minute, the EA places a buy or sell order in the preset direction without any technical indicator filtering. Exit conditions are also time-based, closing all or specific positions when the user-defined closing time is reached. Position sizing uses a fixed lot approach where the user directly sets the trade volume, with no dynamic adjustment based on account balance or risk ratio. Money management is very simplistic, offering only a fixed lot parameter and lacking dynamic position calculation, maximum position limits, or drawdown controls. The overall strategy logic is extremely simple, suitable for traders with clear convictions about specific session behavior, but it lacks market state adaptability as a result.

Strengths

  • Simple and clear logic, easy to understand and configure, suitable for novice traders
  • Can precisely capture volatility opportunities during specific market sessions like major market opens
  • Automated execution avoids manual delays and emotional interference, ensuring time precision
  • Supports stop loss and take profit settings, providing basic risk control
  • Flexible configuration of multiple opening and closing times to adapt to different trading schedules

Weaknesses

  • No technical indicator confirmation at all, purely time-driven entry may open positions in unfavorable market conditions
  • Lacks dynamic position sizing; fixed lot size cannot automatically adjust based on account risk
  • No check for existing positions in the same direction, potentially causing duplicate entries and overexposure
  • No new bar check mechanism, may send duplicate orders within the same time period
  • Lacks spread filter, may enter with wide spreads during low-liquidity sessions

Possible improvements

  • Add technical indicator filters (e.g., moving average direction, RSI overbought/oversold) to avoid counter-trend entries
  • Implement dynamic position sizing that automatically adjusts lot size based on account balance and risk ratio
  • Add position check and new bar check to prevent duplicate entries
  • Add spread filter and maximum slippage limit to protect trade execution quality

Risk assessment

Overall risk: Medium

  • Purely time-driven without technical confirmation may open positions in unfavorable conditions causing significant losses
  • No position check mechanism may lead to duplicate entries and overexposure
  • Fixed lot size lacks risk ratio control; large position trading may cause substantial losses

Evaluation scores

Code quality3.0
Strategy logic2.0
Risk management2.0
Robustness2.0
Innovation1.0
Documentation2.0
Overall2.0

Parameters

ParameterDefaultDescription
OpenHour9Position open time - hour
OpenMinute0Position open time - minute
CloseHour17Position close time - hour
CloseMinute0Position close time - minute
LotSize0.1Trading lot size
TradeDirectionBUYtradingdirection (buy/sell)
StopLoss0Stop loss amount, 0 disables overall stop loss
TakeProfit0Hedge pair net profit target in points
MagicNumber16885EA magic number for order identification

Similar Session Trading 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.