Trading robot · MT4

EA Sofia

by syarief02

EA Sofia is an automated trading robot for MetaTrader 4 that implements a grid-based martingale strategy.

High risk

GitHub stars1
Forks0
Last update2 years ago11 Oct 2023
LicenceNone stated

Overview

EA Sofia is designed to operate on the M5 timeframe, specifically targeting ranging currency pairs. The EA enters trades and manages positions by layering orders at fixed or incremental distances, using a multiplier to increase lot sizes after losses. It includes risk controls such as maximum lot limits and take profit settings, though the default configuration lacks a stop loss. It also features an auto-compounding lot sizing mechanism.

Details

Author

syarief02 on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Grid, Martingale, Mean reversion

Markets

Forex

Timeframes

M1-M5

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Trades without a fixed stop loss

Input parameters

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

NameTypeDefaultDescription
EA_NamestringEA Sofia
Execution_ModeexcBExecution Mode
Pos_ModeposAAPositions Mode
Hedgingboolfalseenable/disable hedging
MethodentryEEEAnalysis Method
Lotsdouble0.01Initial lot size
GridTradingboolTrueGrid Trading
MartingaleMultiplierdouble1.3martingale multiplier
MaxLotdouble500Maximum Lot size
TakeProfitdouble25.0take profit in pips
StopLossdouble0stop loss in pips
minDistancedouble4Minimum Distance Between Orders
Show all 17 inputs
NameTypeDefaultDescription
distanceIncrementdouble2.0Distance increment between order
maxDistancedouble100.0Maximum distance between order
MaxTradeint99999Max Trade
autoCompoundbooltrue
initialCapitaldouble1000

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone syarief02/EASofia 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.
  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

26 stars

This MetaTrader 4 expert advisor operates two concurrent strategy groups based on technical indicators. It primarily utilizes Bollinger Bands and Envelopes to identify market entries for automated trading. The robot employs a position scaling approach, using lot multipliers and fixed-distance grid additions to manage t

MT4 Trading robot Mean reversionMartingaleGrid High risk
Updated 8 years ago None stated GitHub repository of Bollinger Envelopes Grid

Icarus

by fraggli
7 stars

Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr

MT4 Trading robot GridMartingaleMean reversion High risk
Updated 4 years ago GPL-3.0 GitHub repository of Icarus

HolyLamp

by dollarkillerx
3 stars

HolyLamp is a MetaTrader 4 automated trading system that utilizes mean-reversion signals across several technical indicators, including Bollinger Bands, RSI, Stochastics, and the Commodity Channel Index. It is primarily configured for EURUSD on the five-minute timeframe. The robot enters trades at indicator extremes an

MT4 Trading robot Mean reversionMartingaleGrid High risk
Updated 4 years ago MIT GitHub repository of HolyLamp

North East Way

by Yogurt-Peng
3 stars

This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive

MT4 Trading robot Mean reversionGridMartingale High risk
Updated 1 year ago None stated GitHub repository of North East Way

Angry Bird

by bobdomo
2 stars

Angry Bird is a MetaTrader 4 expert advisor based on the Ilan 1.6 architecture, utilizing a mean-reversion strategy combined with aggressive risk management. The EA enters trades based on Relative Strength Index (RSI) levels to identify overextended price movements. It employs an exponential martingale lot scaling syst

MT4 Trading robot Mean reversionMartingaleGrid High risk
Updated 10 years ago None stated GitHub repository of Angry Bird

MFI Expert

by Hamzeh24w
1 stars

This MetaTrader 4 expert advisor implements a trading strategy centered on the Money Flow Index (MFI) indicator. It opens buy positions when the MFI crosses below a user-defined threshold and sell positions when it crosses above a threshold. To manage losing trades, the EA employs a martingale-style lot scaling mechani

MT4 Trading robot Mean reversionMartingaleGrid High risk
Updated 5 years ago None stated GitHub repository of MFI Expert

More trading robots

Need a broker for MT4?

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

Compare brokers