Trading robot · MT4

Robot Desiree

by Lucas170

Robot Desiree is a trend-following expert advisor for MetaTrader 4 that utilizes Donchian Channels for trade entries and exits.

GitHub stars5
Forks10
Last update7 years ago20 Sep 2019
LicenceNone stated

Overview

The system identifies breakouts based on configurable lookback periods and manages positions using either fixed pip-based levels or volatility-adjusted stops and targets calculated from the Average True Range. It features automated position sizing based on account risk percentage, a limit on the number of concurrent positions, and a global loss limit setting. The repository lacks a detailed README as it appears to be part of an educational coding curriculum.

Details

Author

Lucas170 on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Breakout, Trend following

Markets

Forex

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input parameters

Read from Desiree_Complete.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-----------
FixedStopLossdouble0Hard Stop in Pips. Will be overridden if vol-based SL is true
IsVolatilityStopOnboolTrue
Show all 28 inputs
NameTypeDefaultDescription
VolBasedSLMultiplerdouble2Stop Loss Amount in units of Volatility
FixedTakeProfitdouble0Hard Take Profit in Pips. Will be overridden if vol-based TP is true
IsVolatilityTakeProfitOnboolFalse
VolBasedTPMultiplerdouble2Take Profit Amount in units of Volatility
Header4string----------Volatility Measurement Settings-----------
ATRperiodint20
Header5string----------Max Orders-----------
MaxPositionsAllowedint4
Header6string----------Set Max Loss Limit-----------
IsLossLimitActivatedboolFalse
LossLimitPercentdouble0
Header7string----------EA General Settings-----------
MagicNumberint12345
Slippageint3In Pips
IsECNbrokerboolfalseIs your broker an ECN
OnJournalingbooltrueAdd EA updates in the Journal Tab

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Lucas170/Chapter-17-All-Files 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

Box Breakout EA

by je-zhou
26 stars

This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R

MT4MT5 Trading robot BreakoutTrend following

Binario

by EarnForex
20 stars

Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista

MT4MT5 Trading robot BreakoutTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Binario

Hybrid Swing EA

by clevergoldfox
15 stars

This MetaTrader 4 expert advisor executes a regime-gated breakout strategy specifically optimized for XRP and ETH markets. It operates on the H4 timeframe, utilizing Bollinger Bands for entry signals coupled with ADX and ATR filters to identify high-volatility trend environments. The EA employs a one-shot entry approac

MT4 Trading robot BreakoutTrend following
Updated 8 months ago None stated GitHub repository of Hybrid Swing EA
10 stars

This MetaTrader 4 expert advisor automates trading on the foreign exchange market, with specific testing historicals for GBPUSD on the five-minute timeframe. It focuses on intraday logic, allowing users to define specific trading windows and maximum daily trade limits. Risk controls include dynamic lot sizing based on

MT4 Trading robot BreakoutTrend followingMartingale High risk
Updated 9 years ago None stated GitHub repository of E and P For The Freedom

Conservative Scalper EA

by NadirAliOfficial
10 stars

Conservative Scalper EA is a MetaTrader 4 robot designed for intraday scalping on major currency pairs such as EURUSD, GBPUSD, and USDJPY. It determines market bias on the M15 timeframe using dual Exponential Moving Averages and enters trades on the M5 chart based on RSI levels and candle breakouts. The system prioriti

MT4 Trading robot ScalpingTrend followingBreakout

Desiree EA

by Lucas170
7 stars

Desiree is an automated trading robot for MetaTrader 4 that utilizes Donchian Channel breakouts for trade execution. The system enters positions based on a specific lookback period and exits using a separate exit period. A notable logic constraint prevents the EA from entering a new trade if the preceding trade resulte

MT4 Trading robot BreakoutTrend following
Updated 9 years ago None stated GitHub repository of Desiree EA

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