Collection · MT4

Aych MTFX

by AYCHMT

Aych MTFX is a collection of MetaTrader 4 expert advisor templates designed for building custom trading robots.

GitHub stars1
Forks0
Last update6 years ago22 Mar 2020
LicenceNone stated

Overview

Aych MTFX utilizes a modular structure with various versions ranging from basic to full feature sets. The core logic manages trade entries and exits at bar opens, featuring integrated risk controls like break-even settings, trailing stops, and stealth modes to obscure orders from brokers. It includes time-based filters for specific trading days and hours, along with a money management system that calculates lot sizes based on account equity or balance.

Details

Author

AYCHMT on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

Hedging

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input parameters

Read from Full-1.x.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Informationstring--- Information ---
AdvisorstringEAFor Logging.
Versionstring1.0The version number of this script.
Entry_Exitstring--- Entry & Exit ---
Exit_OppositeboolfalseWhether close opposite orders when new signal comes out.
Entry_AtBarOpenbooltrueWhether to wait for new bar to confirm the signal for entry.
Exit_AtBarOpenbooltrueWhether to wait for new bar to confirm the signal for exit.
Order_Operationstring--- Order Operation ---
Order_MaxOpenint0Max opening orders allowd, 0 = No limit.
Order_AllowHedgebooltrueIf allow hedge order to be opened.
Magicint222222For identify trades belong to this EA, set to unique on different chart when using at the same time.
Slippageint3Allow slippage.
Show all 40 inputs
NameTypeDefaultDescription
Lotsdouble0.1Fixed trade lots without using MoneyManagement.
TakeProfitdouble0In Pips. Take Profit, Change to 0 if you don't want to use.
StopLossdouble0In Pips. Stop Loss, Change to 0 if you don't want to use.
Indicator_Settingstring--- Indicator Setting ---
TradeWeekDaystring--- Trade Week Day ---
TWD_OnboolfalseWhether to use the trade week day filter.
TWD_TradeDaysstring2,3,4Choose which days to trade. 0 = Sunday, 1 = Monday, etc.
TradeTimestring--- Trade Time ---
TT_OnboolfalseWhether to use trade time filter.
TT_TradeBeginstring07:00,15:00Don't trade before this time. Can set more than one value or just one.
TT_TradeEndstring10:00,18:00Don't trade after this time. Default setting means only trade 07:00~10:00 and 15:00~18:00.
MoneyManagementstring--- Money Management ---
MM_OnboolfalseWhether using Simple Money Management for trading lots. Need to explicit set the StopLoss value bigger than 0.
MM_Modeint00 = Equity; 1 = Balance.
MM_Riskdouble5In Percentage. Risk as equity (for MM_RiskPips), in percent of total account equity.
MM_RiskPipsdouble100Use this pips value as object for calculating the MM_Risk. 100 pips stoploss = 5% equity of your account.
StealthModestring--- Stealth TP/SL ---
SM_OnboolfalseWhether TakeProfit and StopLoss in Stealth Mode, hiding from the broker. Can explictly set above but truely use below se
SM_TakeProfitdouble100TakeProfit for stealth mode.
SM_StopLossdouble100StopLoss for stealth mode.
BreakEvenstring--- Break Even ---
BE_OnboolfalseWhether using BreakEven.
BE_StealthModeboolfalseWhether using BreakEven in Stealth Mode.
BE_Startdouble20In Pips. How much should the current price above/below the open price.
BE_Adddouble0In Pips. Add a deviation to the Order Open Price, positive value for profit.
TrailStopstring--- Trail Stop ---
TS_OnboolfalseWhether using TrailStop.
TS_StealthModeboolfalseWhether using TrailStop in Stealth Mode.

How to install it

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

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

This repository provides a collection of MetaTrader 4 expert advisors, notably featuring a grid-based trading system. The mGRID EA executes trades by placing multiple pending buy and sell stop orders at fixed pip increments, attempting to capture price movement in either direction. It offers risk controls through confi

MT4 Collection GridIndicator crossoverMulti-strategy High risk
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

This repository is a collection of various MetaTrader 4 expert advisors, featuring the WallStreet Forex Robot along with other tools like SteadyWinner and IndoRun. The primary EA utilizes technical indicators such as Moving Averages, CCI, and Williams' Percent Range to execute trades on the M15 timeframe. It includes c

MT4 Collection Trend followingIndicator crossoverMartingale High risk

Liangxifeng MT4 Collection

by liangxifeng833
6 stars

Liangxifeng MT4 Collection is a repository of MetaTrader 4 expert advisors focused on automated trading strategies. The primary EA employs a dual moving average crossover system to initiate trades and features a scaling mechanism that increases lot sizes as the market moves in favor of the position. It manages risk thr

MT4 Collection Trend followingIndicator crossoverHedging
Updated 5 years ago None stated GitHub repository of Liangxifeng MT4 Collection

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

More collections

Need a broker for MT4?

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

Compare brokers