Collection · MT4

Martingale Levels Expert Collection

by test-box

This MetaTrader 4 repository contains a collection of automated trading tools, primarily centered on the Martingale Levels Expert.

High risk

GitHub stars1
Forks0
Last update7 years ago12 Jan 2019
LicenceNone stated

Overview

The system employs a grid-based strategy that places stop orders at specific intervals and manages them using trailing stops. It utilizes martingale lot scaling, where subsequent order sizes are calculated to reach a breakeven point based on current exposure. Risk controls include configurable minimum and maximum lot limits, automated lot sizing relative to account equity, and loss alerts. The repository includes multiple versions of the source code without documentation.

Details

Author

test-box on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

Grid, Martingale, Hedging

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
  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input parameters

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

NameTypeDefaultDescription
takeprofitint8количество пунктов тейкпрофит
wl_levelint3количество пунктов до безубыточности (ис?
distanceint5минимальное расстояние через которое может быть установлен следующий ордер
trailint4расстояние на котором будет устанавливаться стоп-ордер от максимумов и минимумов (трейлинг расстояние)
min_lotdouble0.1самый первый лот
max_lotdouble10000максимально допустимый лот
Tradebooltrueторговля разрешена (при запрете торговли старые стоп-ордера удаляются, новые стоп-ордера не устанавливаются)
Trade_to_Closebooltrueторговля до закрытия последнего ордера
activeBuybooltrueостановить торговлю по Buy
activeSellbooltrueотсановить торговлю по Sell
auto_lotboolfalseлот расчитывается автоматически
depo_minlotdouble25000депозит на который расчитан начальный лот (нужен для расчета автолота)
Show all 18 inputs
NameTypeDefaultDescription
LotValuedouble10000размер контракта (размер лота в валюте)
Leverageint1000кредитное плечо
MagicNumberint555Идентификатор советника (у каждоко советника должен быть свой ID, чтобы мог торговать параллельно с другими)
CommentOrderstringML_v4.06.03Martingale Levels Expert v4
LossAlertint300
TimeRealertint180

How to install it

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

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

Mql Projects Collection

by PranavSonar
3 stars

This repository features a collection of MetaTrader 4 expert advisors, primarily focused on a multi-strategy system named Complete Robot. The main EA utilizes a combination of technical indicators including Moving Averages, MACD, Bollinger Bands, and Stochastic oscillators for market entry. It employs a grid-based appr

MT4 Collection GridMartingaleIndicator crossover High risk
Updated 8 years ago None stated GitHub repository of Mql Projects Collection

MQ4 Master Collection

by hairibaba
3 stars

This repository provides a collection of MetaTrader 4 expert advisors and utility tools. It includes diverse trading strategies ranging from M1 scalping and Heiken Ashi trend following to swing-based approaches. The codebase features a robust trade management framework with classes for order execution, error handling,

MT4 Collection Trend followingScalpingIndicator crossover High risk Archived
Updated 7 years ago None stated GitHub repository of MQ4 Master Collection
3 stars

This MetaTrader 4 collection contains various expert advisors, including a primary strategy based on EMA 50/200 crossovers and RSI filtering. The main EA manages entries through trend confirmation and provides risk controls such as stop loss, take profit, and trailing stops. It includes features for breakeven activatio

MT4 Collection Indicator crossoverTrend followingGrid High risk
Updated 10 months ago Custom licence GitHub repository of Simple Forex Tools Collection
3 stars

This repository contains a collection of MetaTrader 4 expert advisors, including robots based on RSI, Bollinger Bands, and moving averages. The primary featured expert advisor implements a dual-symbol statistical arbitrage strategy using indicators such as ZigZag and Moving Averages to identify entries. It employs a ma

MT4 Collection ArbitrageMartingaleIndicator crossover High risk
Updated 5 years ago None stated GitHub repository of Clunique Experts Collection
2 stars

This MetaTrader 4 repository contains a collection of expert advisors and utilities, primarily focused on the AM grid robot and various scalping scripts. The main EA employs a grid-based strategy that layers orders at specific distances and includes settings for trend and counter-trend protection. It features a mechani

MT4 Collection GridScalpingTrend following High risk
Updated 2 years ago None stated GitHub repository of Lianxi 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