Collection · MT4

Take Profit and Stop Loss Manager

by davidyisun

This collection for MetaTrader 4 provides a suite of trade management and utility scripts.

GitHub stars1
Forks1
Last update6 years ago30 Oct 2019
LicenceNone stated

Overview

The primary expert advisor automates the application of stop loss and take profit levels for existing trades. It features a sophisticated trailing stop system with dedicated settings for major forex pairs, gold, and silver. Users can manage trades globally or filter by magic number. The repository also includes tools for signal transmission between terminals, account history recording, and real-time equity tracking, making it a comprehensive toolkit for order administration.

Details

Input parameters

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

NameTypeDefaultDescription
SlAndTpstring-------------一般止盈止损-------------说明一
StopLossdouble0止损
TakeProfitdouble0止盈
MSstring-------------移动止损-------------说明
IsUseMSboolfalse是否使用移动止损
Pricelimitdouble100盈利多少个点或钱,开始执行移动止损
MovingStopLossStepdouble50初始移动止损价差
IsTrackSecletboolfalse是否有选择的止盈止损
MagicNumint0所选的EA编号
GBPUSD_MSstring-------------GBPUSD-------------说明
GBPUSD_IsUseMSboolfalseGBPUSD_是否使用移动止损
GBPUSD_Pricelimitdouble100GBPUSD_移动止损起始点
Show all 40 inputs
NameTypeDefaultDescription
GBPUSD_MovingStopLossStepdouble30GBPUSD_移动止损价差
EURUSD_MSstring-------------EURUSD-------------说明
EURUSD_IsUseMSboolfalseEURUSD_是否使用移动止损
EURUSD_Pricelimitdouble120EURUSD_移动止损起始点
EURUSD_MovingStopLossStepdouble40EURUSD_移动止损价差
USDJPY_MSstring-------------USDJPY-------------说明
USDJPY_IsUseMSboolfalseUSDJPY_是否使用移动止损
USDJPY_Pricelimitdouble60USDJPY_移动止损起始点
USDJPY_MovingStopLossStepdouble30USDJPY_移动止损价差
NZDUSD_MSstring-------------NZDUSD-------------说明
NZDUSD_IsUseMSboolfalseNZDUSD_是否使用移动止损
NZDUSD_Pricelimitdouble40NZDUSD_移动止损起始点
NZDUSD_MovingStopLossStepdouble20NZDUSD_移动止损价差
XAUUSD_MSstring-------------XAUUSD-------------说明
XAUUSD_IsUseMSboolfalseXAUUSD_是否使用移动止损
XAUUSD_Pricelimitdouble60XAUUSD_移动止损起始点
XAUUSD_MovingStopLossStepdouble30XAUUSD_移动止损价差
XAGUSD_MSstring-------------XAGUSD-------------说明
XAGUSD_IsUseMSboolfalseXAGUSD_是否使用移动止损
XAGUSD_Pricelimitdouble50XAGUSD_移动止损起始点
XAGUSD_MovingStopLossStepdouble25XAGUSD_移动止损价差
AUDUSD_MSstring-------------AUDUSD-------------说明
AUDUSD_IsUseMSboolfalseAUDUSD_是否使用移动止损
AUDUSD_Pricelimitdouble50AUDUSD_移动止损起始点
AUDUSD_MovingStopLossStepdouble20AUDUSD_移动止损价差
USDCHF_MSstring-------------USDCHF-------------说明
USDCHF_IsUseMSboolfalseUSDCHF_是否使用移动止损
USDCHF_Pricelimitdouble50USDCHF_移动止损起始点

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone davidyisun/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, and any .mqh files into the Include folder the code expects.
  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

464 stars

This repository features a collection of trading tools for MetaTrader 5 and 4, headlined by a comprehensive Trade Manager EA. This manager enables manual execution via keyboard shortcuts and provides automated risk controls, including ATR-based break-even settings and trailing stops. The collection also offers strategy

MT4MT5 Collection BreakoutHedging
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
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

FX Git Collection

by dennislwm
101 stars

This repository contains a diverse collection of MetaTrader 4 expert advisors and R-based financial scripts. The primary robot is based on the Nanningbob trading system, which utilizes multi-timeframe analysis across daily and four-hour charts to identify trends and ranging markets. It employs Bollinger Bands for mean-

MT4 Collection Trend followingMean reversionMartingale High risk
Updated 5 years ago None stated GitHub repository of FX Git 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