Collection · MT4

Simple Trend EA Collection

by 97joseph

A collection of MetaTrader 4 expert advisors designed for trend-following strategies.

GitHub stars2
Forks0
Last update6 years ago22 May 2020
LicenceNone stated

Overview

The primary logic uses Donchian Channel breakouts with configurable periods for entries and exits. It features robust risk management, including percentage-based lot sizing and volatility-based stop loss and take profit levels calculated using ATR. Additional utilities include trailing stops, breakeven functions, and hidden exit levels. The repository includes multiple EA variants and a trend indicator, though documentation is minimal and primarily contained within the source code comments.

Details

Author

97joseph on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

Trend following, Breakout

Markets

Any symbol

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 SimpleComprehensivePostions.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 97joseph/EA 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

135 stars

This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri

MT4MT5 Collection Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of Nkanven EA Collection
21 stars

This repository contains a collection of MetaTrader 4 expert advisors, including the Ariel Turtle Bot and several named variants like Elisa, Cary, and Faith. The primary logic utilizes Donchian Channel breakouts combined with Simple Moving Average filters to identify trend-following entries. The software includes compr

MT4 Collection Trend followingBreakoutMartingale High risk
Updated 9 years ago None stated GitHub repository of Ariel Turtle Bot Collection
19 stars

This repository contains a collection of MetaTrader 4 expert advisors and utilities primarily focused on breakout and trend-following strategies. The featured EA, ttnFullTurtle, implements the classic Turtle Trading rules using dual breakout systems, ATR-based position sizing, and pyramiding logic. It includes risk con

MT4 Collection BreakoutTrend followingMean reversion

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
3 stars

This repository for MetaTrader 4 contains a series of expert advisors based on the Bystruev algorithm. The core logic focuses on price velocity and spread monitoring to place pending stop or limit orders. Trade management includes a global stop loss and a trailing profit mechanism that activates once a specific percent

MT4 Collection Trend followingBreakoutMartingale High risk
Updated 3 years ago None stated GitHub repository of Bystruev Trading 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

More collections

Need a broker for MT4?

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

Compare brokers