Skip to content
Forex Indicator System Thailand
Back to marketplace
UtilityEAHigh

News Trader (pre-news EA)

An EA that opens trades a few seconds before a news time you set, with stop-loss, take-profit and an on-chart timer

Download this EA for free

Download right away. Nothing to fill in.

Version
1.12
Published
11/21/2026
File size
58 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.12Current11/21/2026 · 58 KB

    First release on this site.

How to use

Attach the EA to the chart of the symbol you want to trade the news on and turn on Algo Trading. Set NewsTime to the release time in the broker's server time (the default -1 means not set, and the EA will not open trades). Set it up before the release and keep the terminal running.

StopLoss and TakeProfit are in the broker's pips, while BEOnProfit, BEExtraProfit and TSOnProfit are in points. TrailingStop can be None, Breakeven, Normal or NormalPlusBE. With UseATR on, the SL/TP distances are ATR times ATR_Multiplier_SL and ATR_Multiplier_TP.

MM is on by default at a Risk of 1% per trade. With Direction set to Both on a hedging account there are two trades at once, so total risk can exceed that figure. Test with past news and on a demo account first.

Parameters

NameDefaultDescription
NewsTime-1News release time in the broker's server time. The default -1 = not set, so the EA will not open trades.
StopLoss15Stop-loss in the broker's pips (used when UseATR is off).
TakeProfit75Take-profit in the broker's pips (used when UseATR is off).
DirectionBothTrade direction: Buy, Sell, Both (both sides) or Random (one side at random).
TrailingStopNoneTrailing stop type: None, Breakeven, Normal or NormalPlusBE.
BEOnProfit0Profit in points that triggers moving the stop-loss to breakeven.
BEExtraProfit0Extra profit in points locked in when moving to breakeven. Should not exceed BEOnProfit.
TSOnProfit0Profit in points at which the trailing stop starts.
PreAdjustSLTPfalsetrue = keep adjusting SL/TP with the price until the news time.
SecondsBefore18Number of seconds before the news time at which the EA opens trades.
CloseAfterSeconds3600Close the trade this many seconds after the news time. 0 = do not close automatically.
SpreadFusetruetrue = do not open trades if the spread is at or above the stop-loss (checked in hedging mode).
UseATRfalsetrue = derive SL and TP from ATR instead of fixed pips.
ATR_Period14ATR period.
ATR_Multiplier_SL1ATR multiplier for the stop-loss.
ATR_Multiplier_TP5ATR multiplier for the take-profit.
Lots0.01Fixed lot size, used when MM is false.
MMtruetrue = size the lot from the stop-loss distance and the configured risk.
Risk1Risk per trade as a percentage of the balance, used when MM is on.
FixedBalance0If above 0, this value replaces the real balance when sizing the lot.
MoneyRisk0Risk per trade in account currency, used when UseMoneyInsteadOfPercentage is true.
UseMoneyInsteadOfPercentagefalsetrue = use MoneyRisk instead of Risk (percent).
UseEquityInsteadOfBalancefalsetrue = use equity instead of balance when sizing the lot.
ShowTimertruetrue = show a timer before and after the news on the chart.
FontSize18Font size of the timer.
FontArialFont name of the timer.
FontColorclrRedText colour of the timer.
CornerCORNER_LEFT_UPPERChart corner where the timer is placed.
X_Distance10Horizontal distance of the timer from the chart corner.
Y_Distance130Vertical distance of the timer from the chart corner.
Slippage3Maximum accepted slippage in points.
Magic794823491Magic Number used to tag the EA's trades.
CommentaryNewsTraderComment text attached to each trade, e.g. the name of the news event.
IgnoreECNModetruetrue = always attach SL/TP when opening the trade, even on market-execution accounts.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

News Trader opens trades around a news time that you enter yourself. The EA does not read a news calendar. You put the release time in NewsTime (in the broker's server time). Within SecondsBefore of that time, it opens trades in the chosen direction: Buy, Sell, Both or Random. With Both, a hedging account opens a buy and a sell together, while a netting account places a buy stop and a sell stop.

Trades get stop-loss and take-profit at once (fixed distances or ATR-based). PreAdjustSLTP keeps moving SL/TP with the price until the release time. After entry you can use breakeven or a trailing stop, and the EA closes the trade automatically after CloseAfterSeconds past the news time.

Lot size is based on the stop-loss distance and a risk percentage when MM is on (it is on by default) or a fixed Lots value. There is a spread guard (SpreadFuse) and a countdown timer on the chart.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.