Collection · MT4

MQL4 AlgoTrade Collection

by pcaspa

This repository contains a collection of MetaTrader 4 automated trading tools, including a trade copier and several strategy-based expert advisors.

GitHub stars1
Forks0
Last update3 years ago19 Sep 2023
LicenceNone stated

Overview

The primary logic utilizes dual moving average crossovers combined with momentum filters and divergence checks to identify entries. It features comprehensive risk management tools such as fixed stop losses, money-based take profits, and automated break-even adjustments. Users can implement standard trailing stops or specialized candle-based trailing logic. The code includes equity-based protection to limit total account risk, though the repository lacks a README for detailed setup instructions.

Details

Author

pcaspa on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

Indicator crossover, 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 Donchain.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
TP_In_Moneydouble10
BarsToCountint10
ExitboolfalseEnable Exit strategy
tickbooltrueevery tick\open price
IncreaseFactordouble0.001IncreaseFactor
CandlesToRetraceint10Num.Of Candles For Divergence
Lotsdouble0.01Lots size
TrailingStopdouble40TrailingStop
Stop_Lossdouble20Stop Loss
MagicNumberint1234MagicNumber
Take_Profitdouble50TakeProfit
FastMAint6FastMA
Show all 28 inputs
NameTypeDefaultDescription
SlowMAint85SlowMA
Distancedouble5Distance
Mom_Selldouble0.3Momentum_Sell
Mom_Buydouble0.3Momentum_Buy
UseEquityStopbooltrueUse Equity Stop
TotalEquityRiskdouble1.0Total Equity Risk
Max_Tradesint10
USETRAILINGSTOPbooltrueIF USE TRAILING STOP
WHENTOTRAILint40WHEN TO TRAIL
TRAILAMOUNTint40TRAIL AMOUNT
PADAMOUNTint10PAD AMOUNT
USECANDELTRAILbooltrueUSE CANDEL TRAIL
Xint3NUMBER OF CANDLES
USEMOVETOBREAKEVENbooltrueEnable "no loss"
WHENTOMOVETOBEdouble30When to move break even
PIPSTOMOVESLdouble30How much pips to move sl

How to install it

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

161 stars

This collection for MetaTrader 4 provides a variety of expert advisors and utilities intended for automated trading and educational use. The primary component is a moving average crossover robot that opens positions based on trend direction. It features risk management tools including percentage-based stop losses, take

MT4 Collection Indicator crossoverMartingaleGrid High risk

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

This repository contains a collection of MetaTrader 4 expert advisors, primarily focusing on trend-following and crossover strategies. The main EA utilizes moving average crossovers to detect market trends and incorporates stochastic oscillators across multiple timeframes like M15 and H1. It manages risk through percen

MT4 Collection Trend followingIndicator crossover
Updated 7 years ago None stated GitHub repository of Viktorzhong MT4 Collection
16 stars

This repository provides a collection of MetaTrader 4 expert advisors, centered around the OverLord robot which utilizes logistic regression models. OverLord determines entries by calculating price directionality over various tick counts and analyzing moving average slopes against hardcoded coefficients. In addition to

MT4 Collection AI / machine learningIndicator crossoverTrend following
Updated 8 years ago None stated GitHub repository of OverLord MQL4 Code Samples
12 stars

This MetaTrader 4 repository contains a collection of expert advisors, primarily featuring the Chaos Theory EA. This robot combines several trading methodologies including Bill Williams' Chaos Theory, Trading Made Simple, and THV3 to trade multiple currency pairs simultaneously. It utilizes technical filters such as Su

MT4 Collection Multi-strategyTrend followingIndicator crossover High risk

More collections

Need a broker for MT4?

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

Compare brokers