Trade manager · MT4

Martingale EA Improvement

by jitkasempin

This MetaTrader 4 expert advisor is a management utility designed to handle orders opened by other martingale robots.

High risk

GitHub stars4
Forks0
Last update5 years ago7 Mar 2021
LicenceNone stated

Overview

Martingale EA Improvement monitors trade sequences and applies hedging to the initial low-lot positions to mitigate drawdown. The tool provides automated risk controls including fixed take profit, stop loss, trailing stops, and break-even adjustments for individual orders or entire baskets. It features an advanced duplication mode that opens recovery orders when specific drawdown thresholds are met. The EA can operate across all symbols or focus on the current chart.

Details

Author

jitkasempin on GitHub

Type

Trade manager

Platform

MetaTrader 4 (MQL4)

Strategy

Martingale, Hedging, 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
  • Holds opposite positions at once

EA files

Input parameters

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

NameTypeDefaultDescription
SetManageOrdersstring||=============== Manage Orders ===============||
ManageOrdersMOOrder_By_Order_All_Symbols
ClosingHedgingOrdersSLHEDGEMODEClose_By_Order_Reach_Number
MajorCurrencyTrendMAJORTRENDAll_Trend
AddSLTPstring||=============== Add SL/TP ===============||
PutTakeProfitbooltrue
TakeProfitPipsdouble20.0
PutStopLossbooltrue
StopLossPipsdouble20.0
TrailingSLstring||=============== Trailing SL ===============||
UseTrailingStopbooltrue
PutStopLossAfterdouble0.0
Show all 40 inputs
NameTypeDefaultDescription
TrailingStopdouble5.0
TrailingStepdouble1.0
UseBreakEvenboolfalse
BreakEvenAfterdouble10.0
BreakEvenPipsdouble5.0
DeleteSLTPstring||=============== Delete SL/TP ===============||
DeleteTakeProfitboolfalse
DeleteStopLossboolfalse
AdvancedSetsstring||=============== Advanced Sets ===============||
CommentOfOrderstring
ModeDuplicationboolfalse
DuplicateOnlyDDboolfalse
DrawDownInPipdouble18.0
DupMagikint3411689
PipRecoverCloseint2
DDStopLossPipsdouble100.0
DDTakeProfitPipsdouble100.0
MySlippagedouble3
MagicNumberInfo1string>0 = modify identifier orders
MagicNumberInfo2string0 = modify all orders
MagicNumberInfo3string-1 = modify only manual orders
MagicNumberInfo4string-2 = modify only chart symbol orders
MagicNumberint-2
SoundAlertbooltrue
ProtectorSetsstring||=============== Protector Sets ===============||
AdvancedProtectorboolfalse
MoneyRiskInPercentint25
MaxMoneyValueToLoseint0

How to install it

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

Martingale Manager

by moataz-metwally
2 stars

This MetaTrader 4 expert advisor is a management tool designed to execute and handle trading strategies using martingale lot scaling. It uses HTTP and JSON libraries to potentially interface with external configurations or signals, supporting multiple strategies at once. The EA features a 20-level lot sequence system,

MT4 Trade manager MartingaleHedging High risk
Updated 7 years ago None stated GitHub repository of Martingale Manager

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

Profit Hunter

by phpkadir
5 stars

Profit Hunter is an expert advisor for MetaTrader 4 designed for forex and cryptocurrency trading. It utilizes a composite signal strategy combining Triple Moving Average, Adaptive RSI, CCI, iTrend, and Fisher indicators. The robot executes trades using a grid system where distances between orders are set manually or c

MT4 Trading robot GridMartingaleHedging High risk
Updated 4 years ago None stated GitHub repository of Profit Hunter
4 stars

This repository is a collection of MetaTrader 4 expert advisors and indicators focused on aggressive trading strategies. The primary expert advisor uses a grid-based approach with martingale lot scaling to manage positions. It features multiple entry logics, including Bollinger Bands, Exponential Moving Averages, and m

MT4 Collection MartingaleGridIndicator crossover High risk

Mql Projects Collection

by PranavSonar
3 stars

This repository features a collection of MetaTrader 4 expert advisors, primarily focused on a multi-strategy system named Complete Robot. The main EA utilizes a combination of technical indicators including Moving Averages, MACD, Bollinger Bands, and Stochastic oscillators for market entry. It employs a grid-based appr

MT4 Collection GridMartingaleIndicator crossover High risk
Updated 8 years ago None stated GitHub repository of Mql Projects Collection

MQ4 Master Collection

by hairibaba
3 stars

This repository provides a collection of MetaTrader 4 expert advisors and utility tools. It includes diverse trading strategies ranging from M1 scalping and Heiken Ashi trend following to swing-based approaches. The codebase features a robust trade management framework with classes for order execution, error handling,

MT4 Collection Trend followingScalpingIndicator crossover High risk Archived
Updated 7 years ago None stated GitHub repository of MQ4 Master Collection

More trade managers

Need a broker for MT4?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers