News trading · MT5

News Trading

by JonusNattapong

News Trading is an automated expert advisor for MetaTrader 5 that executes breakout strategies based on high-impact economic events.

GitHub stars1
Forks3
Last update1 year ago27 Apr 2025
LicenceNone stated

Overview

The EA monitors built-in calendars for major releases such as NFP, FOMC, and GDP to identify potential volatility. It analyzes price action within specific time windows before and after events to enter trades when a confirmed breakout occurs. Risk management includes manual lot sizing and stop loss protection, which can be dynamically adjusted using the Average True Range indicator to account for market volatility.

Details

Author

JonusNattapong on GitHub

Type

News trading

Platform

MetaTrader 5 (MQL5)

Strategy

Breakout, News

Markets

Forex, Gold

Timeframes

M1-M5, M15-H1

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

EA files

Input parameters

Read from NewsTrading.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
NewsSettingsstring==== News Trading Settings ====News Settings
EnableNewsTradingbooltrueEnable News Trading
NewsImpactENUM_NEWS_IMPACTHIGHMinimum News Impact Level
MinutesBeforeNewsint15Minutes to wait before news
MinutesAfterNewsint30Minutes to wait after news
TradeNFPbooltrueTrade Non-Farm Payroll
TradeFOMCbooltrueTrade FOMC Announcements
TradeCPIbooltrueTrade CPI Announcements
TradeGDPbooltrueTrade GDP Announcements
TradeSettingsstring==== Trade Settings ====Trade Settings
BreakoutStrategyENUM_BREAKOUT_STRATEGYAFTER_CONFIRMATIONBreakout Entry Strategy
LotSizedouble0.1Lot Size
Show all 23 inputs
NameTypeDefaultDescription
StopLossint100Stop Loss in points
TakeProfitint200Take Profit in points
BreakoutPipsint20Breakout confirmation (pips)
MaxSlippageint10Maximum allowed slippage in points
TimeframeSettingsstring==== Timeframe Settings ====Timeframe Settings
AnalysisTimeframeENUM_TIMEFRAMESPERIOD_M15Analysis Timeframe
EntryTimeframeENUM_TIMEFRAMESPERIOD_M5Entry Timeframe
VolatilitySettingsstring==== Volatility Settings ====Volatility Settings
UseATRbooltrueUse ATR for SL/TP adjustment
ATRPeriodint14ATR Period
ATRMultiplierdouble2.0ATR Multiplier for SL/TP

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone JonusNattapong/NewsTrading from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Onews9 News Trader

by oleg518
16 stars

This MetaTrader 5 expert advisor is designed for news trading by managing pending orders around scheduled economic events. The robot places orders at a specific start time and dynamically shifts their distance from the market price until the news release triggers a breakout. It features a trailing stop that can be exec

MT5 News trading NewsBreakout
Updated 2 years ago None stated GitHub repository of Onews9 News Trader

Forex Factory News Scraper

by NathanaelPeters
2 stars

This MetaTrader 5 expert advisor automates news trading by integrating with an external Python web scraper. The Python component extracts economic calendar data from Forex Factory and saves it to a local file, which the EA monitors in real-time. Minutes before scheduled news events, the bot executes a straddle strategy

MT5 News trading NewsBreakoutHedging
Updated 6 years ago None stated GitHub repository of Forex Factory News Scraper

Event Trader

by fhlee74
8 stars

Event Trader is a news-trading utility for MetaTrader 4 designed to automate straddle entries around scheduled economic releases. The EA places buy-stop and sell-stop orders at a user-defined GMT time and distance from the current market price. It incorporates one-cancels-the-other logic to delete the opposing pending

MT4 News trading NewsBreakout
Updated 6 years ago GPL-3.0 GitHub repository of Event Trader
1 stars

This MetaTrader 4 expert advisor is designed to trade high-impact fundamental events such as NFP and CPI releases. It features a manual on-chart button that, when clicked, prepares logic for a price breakout. The EA tracks pending orders and is programmed to cancel the opposing side once a buy stop or sell stop is trig

MT4 News trading NewsBreakout
Updated 3 years ago None stated GitHub repository of Fundamentals News Trader

News Trader

by EarnForex
55 stars

News Trader is a semi-automatic expert advisor for MetaTrader 4 and MetaTrader 5 designed to execute trades around high-volatility economic announcements. Users manually input the scheduled news release time, and the robot opens positions a specified number of seconds before the event. It supports single-direction trad

MT4MT5 News trading NewsHedging
Updated 1 year ago Apache-2.0 GitHub repository of News Trader

JB News Bot

by jblanked
31 stars

JB News Bot is an automated trading expert advisor for MetaTrader 4 and MetaTrader 5 that executes positions based on scheduled economic data releases. It interfaces with the JBlanked News API to fetch calendar events from sources including MQL5, Forex Factory, and FXStreet. The EA allows users to configure specific en

MT4MT5 News trading News
Updated 3 months ago MIT GitHub repository of JB News Bot

More news EAs

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers