Trading robot · MT4

Nonfarm News Trader

by mzavoloka

This MetaTrader 4 expert advisor is designed specifically to trade high-impact Non-Farm Payroll news events on USD currency pairs.

GitHub stars1
Forks0
Last update10 years ago4 Jun 2016
LicenceNone stated

Overview

Nonfarm News Trader functions by placing a straddle of buy and sell pending orders at a set distance from the market price shortly before the news release. Once the market breaks out and triggers one order, the EA can automatically cancel the opposing pending order. Risk is managed through percentage-based lot sizing, fixed stop loss, take profit, and a trailing stop mechanism.

Details

Author

mzavoloka on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

News, Breakout

Markets

Forex

Timeframes

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 nonfarm.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
StopLossAmountInPointsint200
TrailingAmountInPointsint200
TakeProfitAmountInPointsint1000
PendingOrderOffsetInPointsint200
RiskPerTradeInPercentsint20
Debugboolfalse
DebugDayint1
DebugHourint13
Trailingbooltrue
TrailingTillOpenPricebooltrue
CancelOppositeOrderbooltrue

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone mzavoloka/nonfarm 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 Catcher EA

by oleg518
1 stars

News Catcher EA is an automated trading robot for MetaTrader 4 designed to trade market volatility typically associated with news events. It functions by placing pending buy and sell orders at a specific distance from the current price at a pre-defined start time. The EA manages trades using a configurable trailing sto

MT4 Trading robot NewsBreakout
Updated 8 years ago None stated GitHub repository of News Catcher EA

OrderBlock ICT

by cfournel
3 stars

This MetaTrader 5 expert advisor implements Inner Circle Trader concepts, specifically focusing on Order Blocks and PD Arrays for trade entries. The robot identifies price action structures including breakouts, range-based patterns, and Fibonacci extensions. For risk management, it utilizes ATR-based stop losses, trail

MT5 Trading robot SMC / ICT / price actionBreakoutNews
Updated 3 months ago None stated GitHub repository of OrderBlock ICT

DevyyTrades Webhook EA

by fynnelsner
1 stars

This MetaTrader 5 Expert Advisor functions as a bridge for TradingView alerts, processing signals through a Python-based webhook server. It executes a mechanical strategy involving trend following, Fair Value Gaps, and structural changes like Break of Structure. The EA includes sophisticated risk management such as dyn

MT5 Trading robot Trend followingSMC / ICT / price actionNews
Updated 4 months ago None stated GitHub repository of DevyyTrades Webhook EA

Straddle Grid

by wolfbomb
1 stars

Straddle Grid is an automated trading robot for MetaTrader 5 that deploys bidirectional stop-order grids based on fixed price distances. The expert advisor utilizes a gates system to filter entries by ATR volatility, spread limits, and specific GMT trading sessions. It manages positions as a basket with currency-based

MT5 Trading robot GridBreakoutNews High risk
Updated 7 weeks ago None stated GitHub repository of Straddle Grid

XAUUSD Forex Trader

by frkn2076
31 stars

This expert advisor for MetaTrader 4 focuses on gold trading using daily price extremes and moving averages. It calculates the 7-day Simple Moving Average and identifies the highest price points from the previous five trading days to determine market direction. The EA executes its logic on a five-second timer interval

MT4 Trading robot Mean reversionBreakout
Updated 5 years ago None stated GitHub repository of XAUUSD Forex Trader

Box Breakout EA

by je-zhou
26 stars

This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R

MT4MT5 Trading robot BreakoutTrend following

More trading robots

Need a broker for MT4?

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

Compare brokers