The source files are tailored for EURUSD on the M15 timeframe, offering a modular structure for integrating custom entry and exit signals. It includes comprehensive risk management settings, allowing users to define position sizes as a percentage of balance or fixed lots. It supports trailing stops, time-based filters, and spread limits. Note that the repository contains no README documentation, and the default stop loss and take profit settings are disabled.
Read from EURUSD-testing.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Comment_strategy
string
==========
Entry And Exit Settings
Comment_0
string
==========
Risk Management Settings
RiskDefaultSize
ENUM_RISK_DEFAULT_SIZE
RISK_DEFAULT_AUTO
Position Size Mode
DefaultLotSize
double
1
Position Size (if fixed or if no stop loss defined)
RiskBase
ENUM_RISK_BASE
RISK_BASE_BALANCE
Risk Base
MaxRiskPerTrade
int
2
Percentage To Risk Each Trade
MinLotSize
double
0.01
Minimum Position Size Allowed
MaxLotSize
double
100
Maximum Position Size Allowed
Comment_1
string
==========
Trading Hours Settings
UseTradingHours
bool
false
Limit Trading Hours
TradingHourStart
ENUM_HOUR
h10
Trading Start Hour (Broker Server Hour)
TradingHourEnd
ENUM_HOUR
h17
Trading End Hour (Broker Server Hour)
Show all 28 inputs
Name
Type
Default
Description
Comment_2
string
==========
Stop Loss And Take Profit Settings
StopLossMode
ENUM_MODE_SL
SL_FIXED
Stop Loss Mode
DefaultStopLoss
int
0
Default Stop Loss In Points (0=No Stop Loss)
MinStopLoss
int
0
Minimum Allowed Stop Loss In Points
MaxStopLoss
int
5000
Maximum Allowed Stop Loss In Points
TakeProfitMode
ENUM_MODE_TP
TP_FIXED
Take Profit Mode
DefaultTakeProfit
int
0
Default Take Profit In Points (0=No Take Profit)
MinTakeProfit
int
0
Minimum Allowed Take Profit In Points
MaxTakeProfit
int
5000
Maximum Allowed Take Profit In Points
Comment_3
string
==========
Trailing Stop Settings
UseTrailingStop
bool
false
Use Trailing Stop
Comment_4
string
==========
Additional Settings
MagicNumber
int
0
Magic Number For The Orders Opened By This EA
OrderNote
string
Comment For The Orders Opened By This EA
Slippage
int
5
Slippage in points
MaxSpread
int
100
Maximum Allowed Spread To Trade In Points
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone himi1024/MQL4 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 Expert Advisor framework for MetaTrader 4 provides a modular template for building custom trading strategies. It handles complex trade management tasks, including multi-symbol execution, margin-based position capping, and various lot-sizing algorithms such as risk percentage or fixed volume. Risk controls include
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
This repository contains the MQL source code used by Forex Strategy Builder Professional to export automated trading strategies to MetaTrader 4 and MetaTrader 5. It serves as a standardized template for executing technical strategies generated by the software, handling order execution and trade management. The EA inclu
This MetaTrader 4 expert advisor provides a foundational framework for developers to create custom automated trading systems. It establishes a structured environment for handling trade signals, entry execution, and exit management. The template includes standard risk parameters such as fixed lot sizing, stop loss, and
This MetaTrader 4 utility provides a framework for developers to implement event-driven trade monitoring. It replicates the native MQL5 OnTrade function within the MQL4 environment, which lacks a built-in event for position changes. By monitoring the order pool during each price tick, the code detects when trades are o
This MetaTrader 4 expert advisor provides a robust framework for developing automated trading strategies. It includes pre-built modules for trend detection using ADX and Moving Averages, alongside pullback entry logic. The template emphasizes risk management, featuring percentage-based lot sizing and adaptive volatilit