Framework4o 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 comprehensive risk controls such as ATR-based stop loss and take profit ratios, lot sizing based on account risk, and multi-stage exit strategies including breakeven and profit zone trailing. Trading activity is further restricted by customizable time and session filters.
Read from DER.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
BACKTEST_EXTERNALS
string
strategy_name
string
DEMAEMARSI
slippage
int
3
exportPFThreshold
double
0
RISK_EXTERNALS
string
max_open_risk
double
1.0
max_open_trades
int
3
ATR_period
int
14
SL_ratio
double
1.5
TP_ratio
double
3.0
PROFIT_EXTERNALS
string
breakeven
double
0.5
Show all 30 inputs
Name
Type
Default
Description
profit_zone
double
0.9
profit_zone_reward
double
0.2
SESSION_EXTERNALS
string
hour_limit_start
int
2
hour_limit_end
int
22
STRATEGIES_EXTERNALS
string
DEMA_EXTERNALS
string
DEMA_period
double
26
DEMA_filter
double
0
DEMA_filter_period
int
0
DEMA_enum_price
int
0
DEMA_enum_filter
int
0
EMA_EXTERNALS
string
ema_period
int
30
ema_price
int
8
RSI_EXTERNALS
string
rsi_period
int
14
rsi_vol
bool
true
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone Capital-Advisory-Technology/Framework4o 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, and any .mqh files into the Include folder the code expects.
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 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 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
This collection provides educational templates for building MetaTrader 5 Expert Advisors. It 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 exam
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