This collection of MetaTrader 5 expert advisors features a flagship tool that applies genetic algorithms to optimize moving average crossover strategies.
The system dynamically adjusts short and long period parameters, stop loss, and take profit values based on simulated fitness and real trade performance. Risk management options include fixed lot sizes or percentage-based compounding, alongside ATR-based adaptive stops and spread filters. The logic integrates ADX for market regime detection, allowing for distinct parameter evolution during trending or ranging cycles. Additional experts in the repository focus on ATR bands and multi-timeframe trend following.
Read from SimpleSmaEvolution_v2.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Inp_ShortPeriod
int
10
Initial Short SMA Period
Inp_LongPeriod
int
30
Initial Long SMA Period
Inp_LotSize
double
0.01
Fixed Lot Size (0 = use risk-based sizing)
Inp_RiskPercentage
double
1.0
Risk percentage per trade (when lot size = 0)
Inp_MagicNumber
ulong
123456
Magic Number
Inp_StopLossPips
int
50
Initial Stop Loss in pips (0=off)
Inp_TakeProfitPips
int
100
Initial Take Profit in pips (0=off)
Inp_MaxSpreadPoints
double
5.0
Max spread in points (0=off)
Inp_CloseOnOppositeSignal
bool
false
Close positions on opposite signal
Inp_UseATRStops
bool
false
Use ATR for adaptive stops
Inp_ATRPeriod
int
14
ATR period for adaptive stops
Inp_ATRMultiplierSL
double
2.0
ATR multiplier for stop loss
Show all 35 inputs
Name
Type
Default
Description
Inp_ATRMultiplierTP
double
4.0
ATR multiplier for take profit
Inp_MinPeriod
int
5
Min SMA Period
Inp_MaxPeriod
int
200
Max SMA Period
Inp_MinDiff
int
5
Min difference between periods
Inp_PopulationSize
int
20
Population size
Inp_Generations
int
10
Generations per evolution
Inp_MutationRate
double
0.1
Mutation rate (0.0-1.0)
Inp_TestBars
int
500
Bars for fitness simulation
Inp_EvolveRiskParams
bool
true
Evolve SL/TP parameters
Inp_MinStopLoss
int
20
Min Stop Loss (pips)
Inp_MaxStopLoss
int
100
Max Stop Loss (pips) // REDUCED FROM 150
Inp_MinTakeProfit
int
20
Min Take Profit (pips)
Inp_MaxTakeProfit
int
200
Max Take Profit (pips) // REDUCED FROM 300
Inp_MinRiskReward
double
0.5
Min Risk:Reward ratio
Inp_MaxRiskReward
double
5.0
Max Risk:Reward ratio
Inp_EvolutionMinutes
int
60
Evolution frequency (minutes)
Inp_MinTradesForEvolution
int
10
Min trades before considering real performance
Inp_RealTradeProfitWeight
double
0.7
Weight for real trade performance (0.0-1.0)
Inp_OnlyEvolveAfterLosses
bool
false
Only evolve after losing trades
Inp_UseMarketRegime
bool
false
Adapt to market regime (trend/range)
Inp_ADXPeriod
int
14
ADX period for trend strength
Inp_TrendThreshold
double
25.0
ADX threshold for trend detection
Inp_SeperateEvolution
bool
true
Evolve separate parameters for trend/range
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone rasingollam/Jivita-Expert-Advisors from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 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 repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti
MT5CollectionIndicator crossoverMean reversionTrend following
This collection features several expert advisors for the MetaTrader 5 platform, each built around a different technical indicator such as MACD, RSI, Parabolic SAR, and Ichimoku Kinko Hyo. The robots execute trades based on classic signal logic, including zero-line crossings and signal line crossovers. Users can configu
This educational collection provides a foundation for building MetaTrader 5 expert advisors through a series of modular code snippets and a primary RSI-based trading robot. The included expert advisor executes trades based on Relative Strength Index overbought and oversold levels, supporting both live and closed candle
MT5CollectionMean reversionIndicator crossoverTrend following
This repository provides a diverse collection of MetaTrader 5 expert advisors focusing on technical indicator automation. The core component aggregates signals from a wide array of standard tools, including trend-following moving averages, oscillators like RSI and MACD, and Bill Williams indicators. It includes specifi
This collection of MetaTrader 5 expert advisors serves as an educational resource for MQL5 programming. It contains multiple example robots utilizing technical indicators such as Moving Averages, Parabolic SAR, CCI, and Stochastic oscillators. The provided scripts demonstrate fundamental trading automation features inc
This repository is a collection of MetaTrader 5 expert advisors developed as early coding projects between 2021 and 2024. It includes multiple robots implementing varied strategies such as range breakouts, Donchian channels, Fibonacci retracements, and Bollinger Bands. The expert advisors are largely technical indicato