Collection · MT4

Desiree and MQL4 Collection

by TimCodes

This repository contains a collection of MetaTrader 4 Expert Advisors and helper classes for algorithmic trading.

High risk

GitHub stars1
Forks1
Last update9 years ago7 Apr 2017
LicenceNone stated

Overview

The featured robot, Desiree, implements a breakout strategy based on Donchian Channels for both entries and exits. It incorporates comprehensive risk controls including percentage-based lot sizing, volatility-adjusted stop losses, and trailing stops. Other included experts in the collection cover moving average crossovers and mean reversion techniques. While the README is minimal, the source code provides various templates and hidden stop loss functionality for trade management.

Details

Author

TimCodes on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

Breakout, Trend following, Mean reversion, Indicator crossover, Martingale

Markets

Any symbol

Timeframes

Any timeframe

Risk Profile

  • Uses martingale lot scaling: losses can grow fast

Input Parameters

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

NameTypeDefaultDescription
Header1string----------Trading Rules Variables-----------
DonchianPeriodsEntryint20
DonchianPeriodsExitint10
MaxBarsint50
Header2string----------Position Sizing Settings-----------
Lot_explanationstringIf IsSizingOn = true, Lots variable will be ignored
Lotsdouble0
IsSizingOnboolTrue
Riskdouble2Risk per trade (in percentage)
Header3string----------TP & SL Settings-----------
UseFixedStopLossboolTrueIf this is false and IsSizingOn = True, sizing algo will not be able to calculate correct lot size.
FixedStopLossdouble0Hard Stop in Pips. Will be overridden if vol-based SL is true
Show all 40 inputs
NameTypeDefaultDescription
IsVolatilityStopOnboolTrue
VolBasedSLMultiplierdouble2Stop Loss Amount in units of Volatility
UseFixedTakeProfitboolFalse
FixedTakeProfitdouble0Hard Take Profit in Pips. Will be overridden if vol-based TP is true
IsVolatilityTakeProfitOnboolFalse
VolBasedTPMultiplierdouble0Take Profit Amount in units of Volatility
Header4string----------Hidden TP & SL Settings-----------
UseHiddenStopLossboolFalse
FixedStopLoss_Hiddendouble0In Pips. Will be overridden if hidden vol-based SL is true
IsVolatilityStopLossOn_HiddenboolFalse
VolBasedSLMultiplier_Hiddendouble0Stop Loss Amount in units of Volatility
UseHiddenTakeProfitboolFalse
FixedTakeProfit_Hiddendouble0In Pips. Will be overridden if hidden vol-based TP is true
IsVolatilityTakeProfitOn_HiddenboolFalse
VolBasedTPMultiplier_Hiddendouble0Take Profit Amount in units of Volatility
Header5string----------Breakeven Stops Settings-----------
UseBreakevenStopsboolFalse
BreakevenBufferdouble0In pips
Header6string----------Hidden Breakeven Stops Settings-----------
UseHiddenBreakevenStopsboolFalse
BreakevenBuffer_Hiddendouble0In pips
Header7string----------Trailing Stops Settings-----------
UseTrailingStopsboolFalse
TrailingStopDistancedouble0In pips
TrailingStopBufferdouble0In pips
Header8string----------Hidden Trailing Stops Settings-----------
UseHiddenTrailingStopsboolFalse
TrailingStopDistance_Hiddendouble0In pips

How to Install It

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

C Financial

by rafaelsoec
1 stars

C Financial is a MetaTrader 5 repository containing a large collection of expert advisor variants focused on trend-following and price action strategies. The primary scripts utilize technical indicators like Moving Averages, ADX, CCI, and Average True Range to detect market direction and volatility. It features modular

MT5 Collection Trend followingBreakoutIndicator crossover High risk
Updated 11 days ago None stated GitHub repository of C Financial

EA MQL4 Collection

by Yumerain
151 stars

This repository provides a diverse library of expert advisors and technical indicators for MetaTrader 4. The collection includes robots utilizing moving average crossovers, MACD trend-following signals, and mean-reversion strategies based on Bollinger Bands. A notable inclusion is a Martingale robot that scales lot siz

MT4 Collection Indicator crossoverTrend followingMartingale High risk
Updated 6 years ago None stated GitHub repository of EA MQL4 Collection

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

This repository provides a collection of MetaTrader 4 expert advisors developed for algorithmic trading research. The library includes multiple distinct robots such as the Turtle strategy, Keltner channel candlestick patterns, and volatility-based breakouts. Each EA implements various risk controls including ATR-based

MT4 Collection Trend followingBreakoutMean reversion High risk Archived
2 stars

This repository functions as a large collection of over 170 MetaTrader 4 expert advisors provided in source code format for further development. The library includes various automated trading robots based on popular technical indicators such as Heiken Ashi, RSI, Stochastic, and MACD crossovers. The included files utili

MT4 Collection Indicator crossoverTrend followingMean reversion High risk

Fujii MQL4 EA Collection

by FujiiKairi
1 stars

This repository is a collection of over forty MetaTrader 4 expert advisors covering various trading styles and market conditions. It features the EA31337 multi-strategy framework alongside specialized bots for currency strength, New York session breakout patterns, and Heikin Ashi trend following. The collection include

MT4 Collection Multi-strategyBreakoutTrend following High risk
Updated 6 years ago None stated GitHub repository of Fujii MQL4 EA Collection

More collections

Need a Broker for MT4?

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

Compare brokers