Pending orders by time
This EA places pending buy and sell orders at user-specified times during the trading day. It allows traders to schedule order placements at precise moments, such as around market openings or news events, with configurable expiry, stop loss, and take profit levels for each order type.
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
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 a time-based scheduled pending order placement system, where the trader predicts potential price breakouts or volatility at specific trading sessions and automates order deployment. Entry conditions rely entirely on user-defined time parameters — when the system clock reaches the specified hour and minute, the EA places buy stop and sell stop pending orders above and below the current price respectively. Exit conditions are implemented through independently configurable stop loss and take profit levels for each order type, along with an optional order expiration time that automatically cancels unfilled orders. Position sizing uses a fixed lot approach, with the user manually setting lot sizes for buy and sell orders separately. Money management is absent from the EA's internal logic, meaning position sizing is entirely at the trader's discretion without any dynamic adjustment based on account balance or risk percentage. Overall, this is a semi-automated utility where strategic judgment depends completely on the trader's own assessment of market session behavior.
Strengths
- Enables automated pending order placement at specific times, eliminating the need for manual monitoring — ideal for capturing breakout moves during market opens or news events
- Fully independent configuration for buy and sell order parameters offers high flexibility with different stop loss, take profit, and lot sizes for each direction
- Order expiration feature prevents unfilled orders from lingering in unfavorable time periods
- MagicNumber identification allows clear separation from other EAs or manual trades
- Semi-automated design preserves the trader's strategic decision-making authority while automating execution
Weaknesses
- Lacks new bar check mechanism, potentially placing duplicate orders at the same time and causing position overloading
- No built-in money management logic — relies entirely on user-set lot sizes, which risks excessive leverage and significant losses
- No spread filter — placing orders during high-spread periods can trigger unnecessary stop losses or suffer entry slippage
- No check for existing positions or pending orders in the same direction, which may conflict with current holdings
- Strategy contains no technical analysis indicators and relies purely on the trader's subjective time judgment, lacking systematic entry criteria
Possible improvements
- Add position and same-direction pending order checks to prevent duplicate orders and position stacking risk
- Implement dynamic position sizing based on account balance or risk percentage to improve capital safety
- Add spread filter and trading session validation to avoid placing orders during wide spread or off-hours
Risk assessment
Overall risk: Medium
- No position check mechanism — may place duplicate orders at the same time causing uncontrolled position accumulation
- No dynamic money management — user may set excessively large lot sizes leading to account blow-up risk
- No spread filter — widened spreads during volatile periods may immediately trigger stop losses
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
BuyTimeHour | 8 | Hour for placing buy pending orders |
BuyTimeMinute | 0 | Minute for pending buy order placement |
SellTimeHour | 8 | Hour for pending sell order placement |
SellTimeMinute | 0 | Minute for pending sell order placement |
BuyDistance | 200 | Distance from current price for buy pending order (points) |
SellDistance | 200 | Distance from current price for sell pending order (points) |
BuyStopLoss | 500 | Buy order stop loss distance (points) |
BuyTakeProfit | 500 | Buy order take profit distance (points) |
SellStopLoss | 500 | Sell order stop loss distance (points) |
SellTakeProfit | 500 | Sell order take profit distance (points) |
BuyLot | 0.1 | Buy order lot size |
SellLot | 0.1 | Sell order lot size |
OrderExpiration | 0 | Order expiration time (minutes, 0 = no expiration) |
MagicNumber | 123456 | EA magic number to identify its own orders |
Similar Session Trading EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.