Trading robot · MT4

Matrix Martingale

by derek-mu

Matrix Martingale is a MetaTrader 4 expert advisor designed to trade price action based on previous candle ranges.

High risk

GitHub stars1
Forks1
Last update5 years ago24 Dec 2020
LicenceNone stated

Overview

Matrix Martingale utilizes a fixed Martingale lot scaling sequence across ten levels to manage trades. Entries are determined by Fibonacci levels, specifically placing orders at 25% or 50% retracements of the previous candle's high and low. The robot includes extensive time-based controls, including GMT session filters, weekend closure settings, and a day-limit for open positions. It features a basic validation code requirement for activation and is optimized for H1 or H4 charts.

Details

Author

derek-mu on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Martingale, Mean reversion

Markets

Any symbol

Timeframes

M15-H1, H4 and above

Risk profile

  • Uses martingale lot scaling: losses can grow fast

Input parameters

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

NameTypeDefaultDescription
codestring8888InputValidationCODE
countcandleint1CountCandleBarNum
morethanprecentagedouble0.2MoreThan_Precentage_%
lessthanprecentagedouble1.5LessThan_Precentage_%
TP_25booltrueSendOrder_At_25%
TP_50boolfalseSendOrder_At_50%
MaxOrderint9MaxOrder
tradelotsdouble0.01OrderLots_1
tradelots_2double0.02OrderLots_2
tradelots_3double0.04OrderLots_3
tradelots_4double0.08OrderLots_4
tradelots_5double0.16OrderLots_5
Show all 31 inputs
NameTypeDefaultDescription
tradelots_6double0.32OrderLots_6
tradelots_7double0.64OrderLots_7
tradelots_8double1.28OrderLots_8
tradelots_9double2.56OrderLots_9
tradelots_10double5.2OrderLots_9
TimeSetstring-----!SeverTime!-----TimeParameter_Set
SetTradingTimebooltrueSetTradingTime
BeginH1int6StartTradingHour
EndH1int21CloseTradingHour
countdayint3MaxDayCloseAllLimit
countdayint3MaxDayCloseAllLimit
StaticStateboolfalseSetStaticState
SetWeekCloseboolfalseSetEveryWeekClose
SetTradingTimeboolfalseSetTradingTime
TimeSetstring--GMT--Sunday-for-0--TimeParameter_Set
StartTradingTimeint0SetStartTradingTime(GMT)
SetTimeCloseboolfalseSet_23H_CloseAllPosition
BanTradingDay1int0BanTradingDay1
BanTradingDay2int6BanTradingDay2

How to install it

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

Mad Pound Profits

by Syakyr
16 stars

Mad Pound Profits is a MetaTrader 4 expert advisor that automates trading based on structural breakouts and price action. The system utilizes time-specific analysis windows throughout the day to identify entry opportunities. It incorporates technical elements such as Fibonacci levels, momentum indicators, and mean reve

MT4 Trading robot BreakoutSMC / ICT / price actionMartingale High risk Archived
Updated 7 years ago None stated GitHub repository of Mad Pound Profits

Session Sauce

by jblanked
13 stars

Session Sauce is an automated expert advisor for MetaTrader 4 designed to trade market session transitions and price extremes. It allows users to configure entries based on session opens, highs, and lows for the New York, London, and Asian sessions. The EA includes risk management features such as fixed stop losses, ta

MT4 Trading robot BreakoutMean reversionMartingale High risk
Updated 3 years ago None stated GitHub repository of Session Sauce

Support Resistance EA

by jblanked
11 stars

This MetaTrader 4 expert advisor executes trades based on a combination of Relative Strength Index and Moving Average indicators to identify key entry levels. It includes multiple order management features such as a trailing break-even stop and a four-stage partial profit-taking system. Risk management is handled throu

MT4 Trading robot Trend followingMean reversionMartingale High risk
Updated 3 years ago None stated GitHub repository of Support Resistance EA

Monkey Attack Gold Pivot EA

by Monkeyattack
10 stars

This MetaTrader 4 expert advisor focuses on Gold trading using institutional pivot point levels and fractal-based support and resistance zones. The robot filters entries through a combination of RSI, MACD, and moving average alignment, supplemented by a trade quality scoring system. It includes comprehensive risk contr

MT4 Trading robot Mean reversionIndicator crossoverMartingale High risk

Harey

by visualxl
9 stars

Harey is a MetaTrader 4 expert advisor designed to trade mean-reversion setups using a combination of the Relative Strength Index (RSI) and Stochastic indicators. The system triggers trades when both indicators reach their respective overbought or oversold zones simultaneously. It manages risk through user-defined stop

MT4 Trading robot Mean reversionMartingale High risk
Updated 5 years ago None stated GitHub repository of Harey

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