Orchard Simple EA Template includes demonstration robots that interface with indicators like MACD and Parabolic SAR using the iCustom function. The repository serves as a learning resource for structuring MQL5 code and handling trade execution. Each example includes essential risk controls such as fixed stop loss, take profit, and manual lot sizing. While functional as basic trading robots, the scripts are primarily designed to illustrate how to program entry signals and manage positions within the MT5 framework.
Read from MACDCustom.mq5. 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
InpAppliedPrice
ENUM_APPLIED_PRICE
PRICE_CLOSE
Applied Price
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/mt5_simple_ea_template from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 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 framework provides MQL5 header files and example expert advisors designed to trade on non-time-based Range Bar charts within MetaTrader 5. It includes template robots for moving average crossovers and Super Trend strategies. The included code manages trade execution with configurable stop loss, take profit, break-
MT5Framework & templateIndicator crossoverTrend following
Hedge Terminal is a specialized framework for MetaTrader 5 designed to facilitate hedging net positions and provide a structured API for managing expert advisors. The repository includes demonstration robots such as a moving average expert that operates across multiple timeframes. These examples show how to open trades
This repository provides a specialized framework and example expert advisors for developing Renko-based trading systems on the MetaTrader 5 platform. It includes a dedicated MQL5 header library that simplifies integration with the Median Renko indicator bundle. The framework handles the acquisition of chart settings au
This MetaTrader 5 expert advisor serves as a modular framework and starter template for developing trend-following trading systems. It utilizes a clean architecture to separate signal logic, risk management, and order execution. The included demo logic implements a standard moving average crossover strategy to enter tr
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