Collection · MT4

MQL4 Tutorial EA Collection

by aijy

This repository contains a collection of MetaTrader 4 expert advisors developed for MQL4 programming tutorials.

High risk

GitHub stars14
Forks14
Last update5 years ago4 Dec 2020
LicenceNone stated

Overview

MQL4 Tutorial EA Collection includes various trading strategies ranging from simple moving average crossovers to complex martingale and grid systems. The provided examples demonstrate order layering with configurable lot multipliers, fixed pip distance for subsequent entries, and equity-based risk management. It also features utility scripts for trade copying and account operations. The documentation is minimal as the code is primarily intended to accompany educational video demonstrations.

Details

Author

aijy on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

Martingale, Grid, Indicator crossover

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Trades without a fixed stop loss

Input parameters

Read from 空头马丁.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
UseAddbooltrue是否使用加仓策略,true:是
LotExponentdouble1加仓系数
slipint3滑点
Lotsdouble0.05初始单量
LotsDigitsint2单量精确到小数点后2位
TakeProfitdouble200止盈
PipStepdouble300加仓间隔,当一根K线的开盘价与上次开仓价之间价格大于这个数值,才加倍开仓
MaxTradesint10最大订单数
UseEquityStopbooltrue未使用
TotalEquityRiskdouble20loss as a percentage of equity

How to install it

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

LIVMOR is a MetaTrader 4 expert advisor found within this repository of over fifty automated trading tools. It utilizes technical indicators such as MACD, Stochastic, and moving averages to identify entry points, while also offering manual price entry options. The EA manages risk through user-defined stop loss and take

MT4 Collection Indicator crossoverMartingaleGrid High risk
Updated 8 years ago None stated GitHub repository of LIVMOR Trading Collection

This collection of expert advisors for MetaTrader 4 and 5 provides various automated strategies based on price action and technical indicators. The primary EA utilizes a moving average crossover system with switchable modes for different market conditions. It features a martingale lot-scaling system for sideways market

MT4MT5 Collection Indicator crossoverMartingaleGrid High risk

Aladdin 9 FX

by joaotorresmarques
6 stars

This MetaTrader 4 repository hosts a large collection of automated trading systems, including the Aladdin 9 FX expert advisor. This specific tool identifies entries using the Commodity Channel Index and a Moving Average filter. It operates using a grid-based logic combined with martingale lot scaling, controlled by a l

MT4 Collection GridMartingaleIndicator crossover High risk
Updated 7 years ago None stated GitHub repository of Aladdin 9 FX
4 stars

This repository is a collection of MetaTrader 4 expert advisors and indicators focused on aggressive trading strategies. The primary expert advisor uses a grid-based approach with martingale lot scaling to manage positions. It features multiple entry logics, including Bollinger Bands, Exponential Moving Averages, and m

MT4 Collection MartingaleGridIndicator 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