Framework & template · MT4

Framework4o

by Capital-Advisory-Technology

Framework4o is a modular system building framework and expert advisor for MetaTrader 4.

GitHub stars2
Forks0
Last update2 years ago6 Jul 2024
LicenceGPL-3.0

Overview

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.

Details

Type

Framework & template

Platform

MetaTrader 4 (MQL4)

Strategy

Trend following, Indicator crossover

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input parameters

Read from DER.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
BACKTEST_EXTERNALSstring
strategy_namestringDEMAEMARSI
slippageint3
exportPFThresholddouble0
RISK_EXTERNALSstring
max_open_riskdouble1.0
max_open_tradesint3
ATR_periodint14
SL_ratiodouble1.5
TP_ratiodouble3.0
PROFIT_EXTERNALSstring
breakevendouble0.5
Show all 30 inputs
NameTypeDefaultDescription
profit_zonedouble0.9
profit_zone_rewarddouble0.2
SESSION_EXTERNALSstring
hour_limit_startint2
hour_limit_endint22
STRATEGIES_EXTERNALSstring
DEMA_EXTERNALSstring
DEMA_perioddouble26
DEMA_filterdouble0
DEMA_filter_periodint0
DEMA_enum_priceint0
DEMA_enum_filterint0
EMA_EXTERNALSstring
ema_periodint30
ema_priceint8
RSI_EXTERNALSstring
rsi_periodint14
rsi_volbooltrue

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Capital-Advisory-Technology/Framework4o from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 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.

Similar expert advisors

2 stars

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

MT4 Framework & template Trend followingIndicator crossoverGrid High risk

HpFX Framework

by mbelgin
1 stars

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

MT4 Framework & template Trend followingIndicator crossoverMulti-strategy
Updated 3 months ago MIT GitHub repository of HpFX Framework

Gartal Inc

by bsAmirHeydar
1 stars

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

MT4 Framework & template SMC / ICT / price actionIndicator crossoverTrend following
Updated 3 months ago None stated GitHub repository of Gartal Inc
16 stars

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-

MT5 Framework & template Indicator crossoverTrend following

Orchard Simple EA Template

by OrchardForexTutorials
13 stars

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

MT5 Framework & template Indicator crossoverTrend following

Hedge Terminal

by SokolovVasiliy
3 stars

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

MT5 Framework & template Indicator crossoverTrend followingHedging
Updated 6 years ago None stated GitHub repository of Hedge Terminal

More frameworks and templates

Need a broker for MT4?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers