The included examples demonstrate how to implement indicator-based entries using the iCustom function, such as MACD and Parabolic SAR crossovers. It manages trades with basic risk controls including fixed lot sizing, hard stop loss, and take profit targets defined in points. The repository is designed for educational purposes, providing a clean template for developers to integrate custom logic while maintaining standard order execution routines.
Read from MACDCustom.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpFastEmaPeriod
int
12
Fast EMA Period
InpSlowEmaPeriod
int
26
Slow EMA Period
InpSignalSmaPeriod
int
9
Signal SMA Period
InpTakeProfitPts
int
100
Take profit points
InpStopLossPts
int
100
Stop loss points
InpOrderSize
double
0.01
Order size
InpTradeComment
string
__FILE__
Trade comment
InpMagicNumber
int
2000001
Magic number
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone OrchardForexTutorials/mt4_simple_ea_template from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
This MetaTrader 4 template provides a modular framework for developing expert advisors. It organizes trading logic into decoupled components including signal engines, order management, and environment checking. The system uses an abstract controller class to handle data processing from multiple sources, such as MACD or
Framework4o is a modular system building framework and expert advisor for MetaTrader 4. It provides a structured environment for developing trading models with pre-defined modules for position and risk management. The core functionality handles entry and exit logic using indicators like DEMA, EMA, and RSI. It includes
This MetaTrader 4 expert advisor and modular framework provides advanced trade management and position scaling capabilities. It features a linear trailing stop that triggers at a predefined profit level and a pyramiding system to add positions to winning trades using a lot multiplier. The code is structured as a librar
High Performance Forex (hpFX) is an indicator-agnostic framework for MetaTrader 4 designed for large-scale backtesting and strategy automation. It allows traders to define complex rules by combining up to ten custom indicators as entry signals, confirmation filters, or exit triggers using a flexible string-based encodi
Gartal Inc is a modular trading automation framework and strategy development template for MetaTrader 4. It provides a structured environment for testing various entry and exit logic, including Fair Value Gaps, moving average crossovers, and Donchian channels. The repository focuses on backtesting workflows, featuring
MT4Framework & templateSMC / ICT / price actionIndicator crossoverTrend following
This MetaTrader 5 expert advisor serves as a foundational template for building automated trading systems. The README is minimal, but the code provides a structured framework for beginners to implement custom entry and exit logic using price data and technical indicators. It includes examples of Exponential Moving Aver