Loading…

Trend Follower

From the Old Kings archive: Trend Follower, an expert advisor (trading robot) for MetaTrader 4. Judging by its name, it is built around following the trend. In the code it works with MACD. It moves the stop behind price, has a trading-hours filter and can size trades from your risk. It has 40 settings, for example Faster EMA (default 4), Slower EMA (default 8) and Sound ON (default true). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 22 indicator files with source code (.mq4) you can open and edit in MetaEditor and a PDF guide. 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 Trend Follower

Trend Follower is an expert advisor (trading robot) for MetaTrader 4 based on MACD. It moves the stop loss behind price (trailing stop / break-even), trades only in the hours you set (time filter) and can size trades from your balance and risk percent. It has 40 settings, such as Faster ema, Slower ema and Sound on. MQL source code included.

It also works on several symbols at once and is set up for gold (XAUUSD).

Files in the download: EMA Crossover Signal.mq4, Fibonacci Pivots.mq4, Laguerre.mq4, Pivot Points Multitimeframe.mq4, RainbowMMA_01.mq4, RainbowMMA_02.mq4, RainbowMMA_03.mq4, RainbowMMA_04.mq4 ….

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

Settings

SettingDefaultWhat it does
Faster ema4
Slower ema8
Sound ontrueTurn this alert on or off
Gamma0.66
Count bars950
Midpivotsfalse
Fhrfalse
Dailytrue
Weeklytrue
Monthlytrue
Period1PERIOD_D1Number of bars in the calculation
Period80Period or timeframe used by the calculation
Method3MODE_SMA
Price0PRICE_CLOSE
Alert ontrueTurn this alert on or off
Email onfalseTurn this alert on or off
Trade ontrue
TMTrade and Account managment
Account is microFalse
MMfalseUse Money Management or not
Risk2Percentage of account balance
Lots1Lot size
Decrease factor0
Take profit60Take profit distance
Stop loss30Stop loss distance
Only trail after profitfalseTrailing Stop will only trail when order is profitable
Trailing stop15Trailing stop distance or switch
Break even15Pips to move stoploss to breakeven at
Pips to lock1When Breakeven after pips is reached, it will move to that plus this many pips
Time parameters EA Active Time
Use hour tradefalse
Start hour110Hour when trading starts (server time)
End hour111Hour when trading stops (server time)
Start hour214Hour when trading starts (server time)
End hour218Hour when trading stops (server time)
ISIndicator Settings
SDLSlope Direction Line settings
Use slopeFalse
Sdl period80Period or timeframe used by the calculation
MAMoving average cross settings

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: Trend · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Multi-Currency · Gold (XAUUSD) · MACD · MT4 Indicator · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria