Collection · MT4 · MT5

PeterThomet MetaTrader Tools

by peterthomet

This repository features a collection of trading tools for MetaTrader 5 and 4, headlined by a comprehensive Trade Manager EA.

GitHub stars464
Forks156
Last update1 year ago7 Feb 2025
LicenceNone stated

Overview

This manager enables manual execution via keyboard shortcuts and provides automated risk controls, including ATR-based break-even settings and trailing stops. The collection also offers strategy snippets for London session breakouts and indicators for currency strength and pivot points. Risk management is prioritized through features like daily loss limits, basket management, and hedging at stop loss levels. While the repository contains legacy MetaTrader 4 code, the developer currently focuses on updating and improving the MetaTrader 5 versions.

Details

Author

peterthomet on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Strategy

Breakout, Hedging

Markets

Forex

Timeframes

Any timeframe

Risk profile

  • Holds opposite positions at once

Topics

mql5mql4metatraderforextrading-systemstrading-algorithmstrading

Input parameters

Read from Trade Manager.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InstanceTypeInstance1
AutomationTypeAutomationNoAutomation
BreakEvenAfterPercentATRdouble10
AboveBEPercentATRdouble4
StartTrailingPipsdouble7
TakeProfitPipsdouble0
StopLossPipsdouble0
SetTerminalStopLossboolfalse
HedgeAtStopLossboolfalse
HedgeVolumeFactordouble1
HedgeFlatAtLeveldouble5
TakeProfitPercentTradingCapitaldouble0
Show all 40 inputs
NameTypeDefaultDescription
StopLossPercentTradingCapitaldouble0
MaxDailyLossdouble0
StopLossPercentTradingCapitalActionTypeStopLossPercentTradingCapitalActionCloseAllTrades
CloseTradesBeforeMidnightboolfalse
CloseTradesBeforeMidnightHourint23
CloseTradesBeforeMidnightMinuteint00
ActivateTrailingboolfalse
TrailingFactordouble0.6
OpenLotsdouble0.01
ExecutionTestboolfalse
ShowInfobooltrue
TextColorcolorGray
TextColorBoldcolorBlack
TextColorInfocolorDodgerBlue
TextColorPluscolorMediumSeaGreen
TextColorMinuscolorDeepPink
Color_USDcolorMediumSeaGreenUSD color
Color_EURcolorDodgerBlueEUR color
Color_GBPcolorDeepPinkGBP color
Color_CHFcolorBlackCHF color
Color_JPYcolorChocolateJPY color
Color_AUDcolorDarkOrangeAUD color
Color_CADcolorMediumVioletRedCAD color
Color_NZDcolorSilverNZD color
FontNamestringArial
FontSizeint9
TextGapint16
ManageOwnTradesOnlybooltrue

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone peterthomet/MetaTrader-5-and-4-Tools from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
  3. 3Copy the filesCopy the .mq4 / .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  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

Git Gpa Collection

by shidatonglin
5 stars

GitGpa is an extensive repository of MetaTrader 4 expert advisors, primarily featuring implementations of the OzFX strategy alongside various technical indicator-based bots. The collection includes tools for trend chasing, breakout trading, and moving average crossovers. These experts incorporate multiple risk manageme

MT4 Collection Trend followingBreakoutIndicator crossover High risk
Updated 7 years ago None stated GitHub repository of Git Gpa Collection
5 stars

This repository contains an extensive library of MetaTrader 5 expert advisors covering various algorithmic trading methodologies. The collection includes strategies based on Bollinger Bands, Relative Strength Index, moving average ribbons, and swing failure patterns. A core focus is the Ighodalo series for gold and CFD

MT5 Collection Trend followingBreakoutMartingale High risk
Updated 8 weeks ago Custom licence GitHub repository of Ighodalo MT5 Strategy Collection

This repository features a collection of MetaTrader 5 expert advisors designed for automated trading across various market conditions. The included tools range from grid-based systems like Mecha-Godzilla to range-reversion and breakout strategies. The expert advisors offer modular risk management, including daily loss

MT5 Collection GridMean reversionBreakout High risk
2 stars

This collection for MetaTrader 5 provides several automated Expert Advisors designed for various symbols including forex, gold, and indices. The repository features Mecha Godzilla, a grid trading system using ATR-based spacing and bidirectional orders, alongside specialized bots for Asian session breakouts and H4 trend

MT5 Collection GridBreakoutTrend following High risk
1 stars

This repository is a collection of MetaTrader 4 expert advisors focusing on breakout and technical indicator strategies. Notable components include breakout logic based on Monday high and low prices, exponential moving average crossovers, and high-water mark tracking. Risk management is handled through various lot sizi

MT4 Collection BreakoutHedgingIndicator crossover High risk
1 stars

Xurya Algorithmic Trading is a collection of MetaTrader 4 expert advisors centered on breakout strategies and volatility analysis. The primary EA uses a breakout mechanism with entries filtered by price action across a defined number of bars. It features risk controls including fixed percentage lot sizing based on acco

MT4 Collection BreakoutHedging
Updated 6 years ago None stated GitHub repository of Xurya Algorithmic Trading

More collections

Need a broker for MT4/MT5?

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

Compare brokers