News trading · MT4

News Stopper

by faraz-hk

News Stopper is a utility for MetaTrader 4 designed to manage trade exposure and platform activity around scheduled economic events.

GitHub stars9
Forks2
Last update2 years ago17 Jan 2024
LicenceGPL-3.0

Overview

News Stopper fetches data from external news calendars to automatically disable the automated trading button, close open positions, or delete pending orders. The tool allows users to set specific time buffers before and after news releases and filter events by impact level or specific keywords. It can target all trades or only those related to the currency involved in the news event.

Details

Author

faraz-hk on GitHub

Type

News trading

Platform

MetaTrader 4 (MQL4)

Markets

Any symbol

Timeframes

Any timeframe

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.

Input parameters

Read from News_Stopper - ForexFactory.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
info1string ------======<<[ News Management ]>>======------ News Settings
news_linkstringhttps://nfs.faireconomy.media/News URL (to be placed in settings)
min_beforeint5Minutes Before News to close
min_before_zeroint60Minutes Before News to close with zero profit
min_afterint45Minutes After News to halt
include_highbooltrueInclude high
include_mediumboolfalseInclude medium
include_lowboolfalseInclude low
use_titlebooltrueFilter News based on title
title_phrasestringNon-Farm,Unemployment,ISM,PMI,CPI,FOMC,Retail Sales,Final GDtitle keyword (comma seperated)
news_update_hourint2Update time interval (in hours)
symbol_typecurrenciestype1Currencies check method
Show all 29 inputs
NameTypeDefaultDescription
news_symbolsstringUSD,EUR,GBP,JPY,CAD,CHFCustom Currencies to Check For News
close_only_news_pairboolfalseOnly Close Orders of The Events Currency
draw_news_linesbooltrueDraw News Lines on chart
Line_ColorcolorclrRedLines Color
Line_StyleENUM_LINE_STYLESTYLE_DOTLines Style
Line_Widthint1Line Width
info2string ------======<<[ Order Management ]>>======------ Order Management
stop_algobooltrueStop Auto trading
close_openbooltrueClose all open trades
close_pendingbooltrueDelete all Pending orders
close_zerobooltrueClose all trades with profit
close_profitdouble1Profit for Closing all trades (in $)
close_chartsboolfalseClose all Charts
info3string ------======<<[ Settings ]>>======------ Settings
send_notifbooltrueSend notification
send_alertbooltrueSend Alert
delayint5Delay if somthing goes wrong (in seconds)

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone faraz-hk/news_stopper_mt4 from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 file into Experts.
  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

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

Amazing

by EarnForex
24 stars

Amazing is a news trading expert advisor for MetaTrader 4 and 5 designed to capture volatility during scheduled economic announcements. It operates as a semi-automatic tool, requiring the user to manually input the specific date and time of an upcoming news event. The EA places two symmetrical pending orders at a defin

MT4MT5 News trading News
Updated 3 years ago Apache-2.0 GitHub repository of Amazing

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

Forex News Killer

by Ahmed-GoCode
6 stars

Forex News Killer is a risk management utility for MetaTrader 4 designed to protect accounts from volatility during high-impact economic news. The tool monitors real-time calendars and automatically intervenes based on user-defined time buffers before and after events. It can close open positions, remove pending orders

MT4 News trading News
Updated 10 months ago None stated GitHub repository of Forex News Killer

Forex News Killer

by DodsonPeek
4 stars

Forex News Killer is a protective utility for MetaTrader 4 designed to manage market exposure during high-impact economic events. It monitors external news calendars and automatically intervenes by closing open positions, deleting pending orders, or disabling the platform's global algorithmic trading button. The EA off

MT4 News trading
Updated yesterday None stated GitHub repository of Forex News Killer

More news EAs

Need a broker for MT4?

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

Compare brokers