Adaptive DDQN MT5 utilizes a Deep Q-Network to make trading decisions based on market states derived from technical indicators, volatility, and supply-demand zones. The system manages trades using a grid-based basket approach with lot scaling via a multiplier. Risk controls include take profit, optional trailing stops, and equity-based guards, though it defaults to no fixed stop loss per trade. It features experience replay and persistent memory to adapt to market conditions across multiple symbols.
Read from AdaptiveDQN_MT5_LearningEdition.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
MaxZonesTracked
int
50
SymbolsSettings
string
==== Symbols / Universe ====
SymbolMode
ENUM_SYMBOL_MODE
SYM_CURRENT
SymbolsList
string
EURUSD,GBPUSD,XAUUSD,US30
BaseMagic
int
220111
TFSettings
string
==== Timeframe settings ====
BaseTF
ENUM_TIMEFRAMES
PERIOD_M5
General
string
==== General settings ====
Lots
double
0.01
LotExponent
double
1.4
MaxTrades
int
10
TakeProfit
int
100
POINTS
Show all 40 inputs
Name
Type
Default
Description
StopLoss
int
0
POINTS
Slippage
int
30
SymbolSettings
string
==== Q/DQN settings ====
QTablePrefix
string
DynamicSettings
string
==== Dynamic grid / channel settings ====
UseDynamicPips
bool
true
DefaultPips
int
120
POINTS
Depth
int
24
PipsFactor
double
3.0
IndicatorSettings
string
==== Indicator settings ====
RSI_Period
int
14
RSI_Minimum
double
30.0
RSI_Maximum
double
70.0
UseCCI
bool
false
CCI_Period
int
55
CCI_Level
int
500
ExitSettings
string
==== Exit & risk settings ====
UseTrailingStop
bool
false
TrailStart
int
100
TrailStop
int
100
UseEquityStop
bool
false
EquityRiskPercent
double
20.0
BudgetSettings
string
==== Virtual equity budget ====
EquityBudget
double
1000.0
CorrelationSettings
string
==== Correlation filter settings ====
UseCorrelation
bool
true
MinCorrelation
double
0.7
CorrelationPeriod
int
50
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone chyr-rpg/DDQN_RL_MT5 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.
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 machine learning expert advisor for MetaTrader 5 utilizes ensemble and deep learning models to analyze market patterns. It offers a versatile multi-strategy approach, allowing users to toggle between trend-following, scalping, and grid-hedging behaviors. Risk controls are comprehensive, featuring fixed percentage
This MetaTrader 5 expert advisor combines technical indicators with machine learning forecasts to trade the Forex market. It uses a trend-following approach based on Exponential Moving Average crossovers, filtered by the Average Directional Index and volume confirmations. A unique feature is its integration with extern
This Expert Advisor for MetaTrader 5 implements a martingale trading strategy triggered by the Relative Strength Index (RSI). It opens an initial position when RSI reaches overbought or oversold thresholds. If price continues to move against the initial trade, the EA layers additional orders at set point intervals, mul
This MetaTrader 5 expert advisor executes a grid trading strategy enhanced with martingale lot scaling. The system identifies market direction through multi-timeframe analysis using Exponential Moving Averages and the Average Directional Index. It features dynamic grid spacing that adjusts based on market volatility an
This MetaTrader 5 expert advisor executes a mean reversion strategy based on price deviation from a Simple Moving Average. It enters short positions when prices rise above the average and long positions when prices fall below. The algorithm utilizes an aggressive grid-based recovery system where both the entry distance
This MetaTrader 5 expert advisor utilizes a multicurrency strength system to identify trading opportunities by comparing relative currency values. It calculates strength based on a configurable lookback period, typically using H4 data, and includes triangular weighting and smoothing options. The robot manages exits usi