HpFX Framework 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 encoding. The system includes ATR-based risk management for dynamic stop loss and take profit levels, break-even logic, and spread protection. It is specifically optimized for batch testing across multiple currency pairs to identify effective indicator combinations while eliminating manual simulation effort and psychological bias.
Read from hpFX_Engine.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
indi_defs_1
string
Indicator #1 definition
indi_usage_1
t_indi_usage
DISABLED
Indicator #1 usage
indi_defs_2
string
Indicator #2 definition
indi_usage_2
t_indi_usage
DISABLED
Indicator #2 usage
indi_defs_3
string
Indicator #3 definition
indi_usage_3
t_indi_usage
DISABLED
Indicator #3 usage
indi_defs_4
string
Indicator #4 definition
indi_usage_4
t_indi_usage
DISABLED
Indicator #4 usage
indi_defs_5
string
Indicator #5 definition
indi_usage_5
t_indi_usage
DISABLED
Indicator #5 usage
indi_defs_6
string
Indicator #6 definition
indi_usage_6
t_indi_usage
DISABLED
Indicator #6 usage
Show all 40 inputs
Name
Type
Default
Description
indi_defs_7
string
Indicator #7 definition
indi_usage_7
t_indi_usage
DISABLED
Indicator #7 usage
indi_defs_8
string
Indicator #8 definition
indi_usage_8
t_indi_usage
DISABLED
Indicator #8 usage
indi_defs_9
string
Indicator #9 definition
indi_usage_9
t_indi_usage
DISABLED
Indicator #9 usage
indi_defs_10
string
Indicator #10 definition
indi_usage_10
t_indi_usage
DISABLED
Indicator #10 usage
div2
string
----------------------
TRADING CONDITIONS
min_before_candle_close
int
5
Trading window before candle close (min)
max_spread_pips
double
10.0
Max spread to take trades
max_slippage_points
int
100
Max allowed slippage in points
div3
string
----------------------
RISK MANAGEMENT
risk_percent
double
2
Risk per trade (percent)
opt_first_order_risk
double
100.0
1st order risk % (use 100.0 for single trade)
opt_1st_sl_atr_multiplier
double
1.5
1st SL ATR multiplier
opt_1st_tp_atr_multiplier
double
3.0
1st TP ATR multiplier (0 to leave it open)
opt_2nd_sl_atr_multiplier
double
1.5
2nd SL ATR multiplier
opt_2nd_tp_atr_multiplier
double
3.0
2nd TP ATR multiplier (0 to leave it open)
no_indiexit_on_first_trade
bool
false
Do NOT check exit conditions on the first trade
add_spread_to_tp
bool
false
Add current spread to TP
require_matching_candle
bool
false
Require matching candle to trade
sl_to_be_R
double
0.0
R to move SL->BE
div4
string
----------------------
VARIOUS
debug_output
bool
false
Debug output (enables banner/debug logs)
repaint_check
bool
false
(BETA) Perform a repaint check and exit instead of running tests
doji_percent
double
10.0
Percent of daily range for a candle to be considered 'doji'
div5
string
----------------------
ROULETTE MM
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone mbelgin/hpFX 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.
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 framework provides a modular environment for developing and backtesting expert advisors based on the No Nonsense Forex methodology. It includes functional swing trading robots that utilize baseline indicators, multiple confirmation layers, and volatility filters to identify entries. The system feature
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
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