News_Template_Universal
This EA trades around scheduled economic news events by placing pending orders (buy stop and sell stop) at a configurable distance from the current price shortly before a news release. It captures the volatility spike following high-impact news announcements and manages positions with stop loss, take profit, trailing stop, and time-based expiration of pending orders.
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 strategy concept is based on News Trading, placing directional pending orders on both sides of the current price before high-impact economic data releases to capture the subsequent volatility spike. Entry conditions: the EA detects upcoming news events via an economic calendar or external signal source, then places Buy Stop and Sell Stop orders at a configurable distance above and below the current price a specified number of minutes before the release. Exit conditions include hitting take profit targets, triggering stop loss, trailing stop profit protection, or automatic deletion of unfilled pending orders after a specified post-news timeout. Position sizing is controlled via lot size parameters, supporting both fixed lot sizing and equity-based dynamic lot calculation. Money management incorporates maximum slippage limits, maximum open position controls, and news event importance filters to restrict trading to high-impact events only. The overall strategy relies on directional breakout following news releases, capturing whichever direction the market breaks through the pending order trap, making it a classic event-driven trading approach.
Strengths
- Dual pending order strategy doesn't predict direction, capturing volatility opportunities regardless of whether price moves up or down after news
- Complete order lifecycle management including automatic pending order expiration and trailing stop profit protection
- News importance level filter restricts trading to high-impact events only, improving win rate
- Flexible parameterized design allows adjustment of distance, SL/TP for different currency pairs and news types
Weaknesses
- Slippage and price gaps during news releases may prevent stop loss from executing as expected, resulting in losses far exceeding the configured SL
- Dual pending orders can both be triggered in a whipsaw market, leading to double losses when both hit stop loss
- Depends on accuracy of economic calendar data; delayed or missing data sources will cause missed trading opportunities
- Does not account for spread widening dramatically during news periods, which can lead to abnormally high entry costs
Possible improvements
- Add a maximum spread filter during news periods to suspend order placement when spread exceeds a threshold
- Implement OCO (One-Cancels-Other) logic to automatically cancel the opposite pending order once one side is filled, avoiding simultaneous dual positions
- Integrate more reliable multi-source economic calendar data with validation and fallback mechanisms for data availability
Risk assessment
Overall risk: Medium
- Slippage and price gaps during news releases can cause actual stop loss to far exceed the configured value
- Dual pending orders can both be filled simultaneously, creating double loss risk
- No spread widening filter to protect against abnormally wide spreads during news events
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
NewsMinutesBefore | 5 | Minutes before news release to place pending orders |
NewsMinutesAfter | 30 | Minutes after news release to delete unfilled orders |
OrderDistance | 20 | Pending order distance from current price in points |
StopLoss | 50 | Stop loss in points, SL distance per order |
TakeProfit | 100 | Take profit in points per level |
TrailingStop | 30 | Trailing stop in points |
LotSize | 0.1 | Initial lot size, first order volume |
MaxSlippage | 10 | Maximum slippagepoints |
MagicNumber | 40590 | Magic number, unique EA order identifier |
MaxOpenPositions | 2 | Maximum simultaneous positions |
MinImpactLevel | 3 | Minimum news impact level filter |
Similar News Trading EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.