Loading…

News Trader

This Old Kings expert advisor (trading robot) for MetaTrader 4 is called News Trader. Its name points to economic news times. In the code it works with ATR. It raises the lot size after losses (martingale — high risk), moves the stop behind price and can size trades from your risk. It has 28 settings, for example News Time (default __DATE__), Stop Loss (default 15) and Take Profit (default 75). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Expert advisor · MT4 · v1.0 · Free

About News Trader

News Trader is an expert advisor (trading robot) for MetaTrader 4 based on ATR. It increases the lot size after a losing trade (martingale), moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 28 settings, such as News time, Stop loss and Take profit. MQL source code included.

It also has a news filter.

Files in the download: NewsTrader.mq4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
News time__DATE__News date/time.
Stop loss15Stop-loss in broker's pips.
Take profit75Take-profit in broker's pips.
DirectionBothDirection of the trade to open.
Trailing stopNoneType of trailing stop based on stop-loss.
Pre adjust sltpfalsePreadjust SL/TP until news is out.
Seconds before18Open trade X seconds before the news.
Close after seconds3600Close trade X seconds after the news, 0 - turn the feature off.
Spread fusetrueSpreadFuse - prevent trading if spread >= stop-loss.
Use atrfalseUse ATR-based stop-loss and take-profit levels.
Atr period14ATR Period.
Atr multiplier sl1ATR multiplier for SL.
Atr multiplier tp5ATR multiplier for TP.
Lots0.01Trade size in lots
MMtrueMoney Management, if true - position sizing based on stop-loss.
Risk1Risk - Risk tolerance in percentage points.
Fixed balance0FixedBalance - If greater than 0, position size calculator will use it instead of actual account bal
Money risk0MoneyRisk - Risk tolerance in base currency.
Use money instead of percentagefalse
Use equity instead of balancefalse
Lot digits2LotDigits - How many digits after dot supported in lot size. For example, 2 for 0.01, 1 for 0.1, 3 f
Show timertrueShow timer before and after news.
Font size18
FontArial
Font colorclrRedColour on the chart
Slippage3Maximum slippage allowed when opening a trade
Magic794823491Magic number that tells this EA's orders apart
CommentaryNewsTraderComment - trade description (e.g. "US CPI", "EU GDP", etc.).

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: News Trading · Martingale · Trailing Stop & Break-even · Risk & Lot Size · ATR · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria