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 order once one is triggered. Risk management features include a fixed stop loss, take profit, and a block-based trailing stop system that shifts the stop loss as profit targets are met. It also includes expiration settings for both pending and active orders.
Read from SO55930471.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
vsEAComment
string
Telegram @JosephLee74
Ego trip
vdTradeStartInGMT
datetime
D'2019.11.01 17:00'
When to trade (GMT)
viStopOrderLevelInPip
int
5
StopOrder distance from ask/bid (pips)
viFixLots
double
0.01
Lot size
viStopLossInPip
int
20
StopLoss (pips)
viTargetProfitInPip
int
100
TargetProfit (pips)
viDeleteStopOrderAfterInSec
int
30
StopOrder TTL (sec)
viDeleteOpenOrderAfterInSec
int
300
Executed Order TTL (sec)
viMaxSlippageInPip
int
2
Max Slippage (pip)
viProfitToActivateBlockTrailInPip
int
15
Activate Block-Trailing after trade has Profit by x pips.
viTrailShiftProfitBlockInPip
int
20
Shift SL when Profit jump every x pips.
viTrailShiftOnProfitInPip
int
10
Move SL by x-pips when shifting.
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone fhlee74/mql4-EventTrader from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
News Trading is an automated expert advisor for MetaTrader 5 that executes breakout strategies based on high-impact economic events. 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 e
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
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