Trading robot · MT4

MFI Expert

by Hamzeh24w

This MetaTrader 4 expert advisor implements a trading strategy centered on the Money Flow Index (MFI) indicator.

High risk

GitHub stars1
Forks0
Last update5 years ago5 Oct 2020
LicenceNone stated

Overview

MFI Expert opens buy positions when the MFI crosses below a user-defined threshold and sell positions when it crosses above a threshold. To manage losing trades, the EA employs a martingale-style lot scaling mechanism, opening up to eight sequential orders at increasing pip distances with progressively larger lot sizes. Exits are triggered when the MFI reaches specific exit levels. The README is minimal, and the code relies on indicator crosses for trade management.

Details

Author

Hamzeh24w on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Mean reversion, Martingale, Grid

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Trades without a fixed stop loss

EA files

Input parameters

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

NameTypeDefaultDescription
sellstartint80vorud sell
sellendint30exit sell
buystartint20vorud buy
buyendint70exit buy
acceptedshibdouble0
MFI_Periodint20
lotSize1double0.01
lotSize2double0.02
lotSize3double0.03
lotSize4double0.04
lotSize5double0.05
lotSize6double0.06
Show all 21 inputs
NameTypeDefaultDescription
lotSize7double0.07
lotSize8double0.08
pipDiff2int200
pipDiff3int300
pipDiff4int400
pipDiff5int500
pipDiff6int600
pipDiff7int600
pipDiff8int600

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Hamzeh24w/MFI_Expert 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

26 stars

This MetaTrader 4 expert advisor operates two concurrent strategy groups based on technical indicators. It primarily utilizes Bollinger Bands and Envelopes to identify market entries for automated trading. The robot employs a position scaling approach, using lot multipliers and fixed-distance grid additions to manage t

MT4 Trading robot Mean reversionMartingaleGrid High risk
Updated 8 years ago None stated GitHub repository of Bollinger Envelopes Grid

Icarus

by fraggli
7 stars

Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr

MT4 Trading robot GridMartingaleMean reversion High risk
Updated 4 years ago GPL-3.0 GitHub repository of Icarus

HolyLamp

by dollarkillerx
3 stars

HolyLamp is a MetaTrader 4 automated trading system that utilizes mean-reversion signals across several technical indicators, including Bollinger Bands, RSI, Stochastics, and the Commodity Channel Index. It is primarily configured for EURUSD on the five-minute timeframe. The robot enters trades at indicator extremes an

MT4 Trading robot Mean reversionMartingaleGrid High risk
Updated 4 years ago MIT GitHub repository of HolyLamp

North East Way

by Yogurt-Peng
3 stars

This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way

Angry Bird

by bobdomo
2 stars

Angry Bird is a MetaTrader 4 expert advisor based on the Ilan 1.6 architecture, utilizing a mean-reversion strategy combined with aggressive risk management. The EA enters trades based on Relative Strength Index (RSI) levels to identify overextended price movements. It employs an exponential martingale lot scaling syst

MT4 Trading robot Mean reversionMartingaleGrid High risk
Updated 10 years ago None stated GitHub repository of Angry Bird

Se-0303

by se333
1 stars

Se-0303 is an automated trading robot for MetaTrader 4 and 5 that employs a grid-based approach with Martingale lot scaling. It determines entries through trend analysis and M1 fractals, using coefficients to calculate order distances and take profit targets relative to price height. The EA includes specific risk contr

MT4MT5 Trading robot GridMartingaleTrend following High risk
Updated 6 years ago None stated GitHub repository of Se-0303

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