Dejavu EA supports buy and sell stops and limits, organized in configurable increments. The strategy includes a dynamic take profit mechanism relative to grid spacing, trailing stops, and ATR-calculated stop losses. Risk management is centralized around equity-based lot sizing and a global drawdown percentage limit. A specialized graphical interface allows users to toggle order types and manage grid replenishment directly on the chart.
Read from Dejavu.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
GestionRiesgos
string
Gestion de Riesgos
stopLoss
double
9000
Stop Loss en puntos
takeProfit
double
2000
Take Profit en puntos
maxDrawdownPercent
double
20
Máximo drawdown permitido en porcentaje
riskPerTrade
double
2
Riesgo por operación en porcentaje
dynamicSLMultiplier
double
1.5
Multiplicador para SL dinámico (ATR)
atrPeriod
int
14
Periodo para el cálculo del ATR
ConfigTrading
string
Configuracion de Trading
tpinverso
double
2000
Take Profit para órdenes inversas (en puntos)
slinverso
double
9000
Stop Loss para órdenes inversas (en puntos)
incremento
int
15
Incremento entre órdenes en la cuadrícula (en puntos)
cantidadDeOperaciones
int
50
Cantidad máxima de operaciones por dirección
Show all 40 inputs
Name
Type
Default
Description
cantidadDeGanancia
double
20000
Objetivo de ganancia total (en puntos)
reiniciarPrograma
bool
true
Reiniciar después de alcanzar objetivo de ganancia
tBuyStop
bool
false
Activar órdenes BuyStop
tBuyLimit
bool
true
Activar órdenes BuyLimit
tSellStop
bool
false
Activar órdenes SellStop
tSellLimit
bool
true
Activar órdenes SellLimit
ConfigReposicion
string
Configuracion de Reposicion
reponerLimits
bool
true
Reponer órdenes Limit automáticamente
reponerStops
bool
true
Reponer órdenes Stop automáticamente
ConfigGrupos
string
Configuracion de Grupos
ordenesPorGrupo
int
15
Número de órdenes por grupo antes de aumentar incremento
incrementoPorGrupo
int
5
Incremento adicional por cada grupo (en puntos)
ConfigTPDinamico
string
Take Profit Dinamico
usarTPDinamico
bool
true
Activar Take Profit dinámico basado en incremento
factorTPDinamico
double
0.6
Factor multiplicador (0.6 = 60% del incremento)
minTP
double
100
TP mínimo permitido (en puntos)
maxTP
double
5000
TP máximo permitido (en puntos)
ConfigTrailing
string
Trailing Stop
activarTrailingStop
bool
true
Activar sistema de Trailing Stop
trailingStopPuntos
double
500
Distancia del SL al precio actual (en puntos)
trailingStep
double
100
Paso mínimo para mover el SL (en puntos)
ConfigLotes
string
Configuracion de Lotes
lot100
double
.01
Lote para equity < 1000
lot1000
double
.01
Lote para equity 1000-2000
lot2000
double
.01
Lote para equity 2000-3000
lot3000
double
.01
Lote para equity 3000-4000
lot4000
double
.01
Lote para equity 4000-5000
lot5000
double
.01
Lote para equity 5000-6000
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone MarxMad/Algorithm_Trading_MT5_Dejavu 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.
High Frequency Grid EA is an automated trading robot for MetaTrader 5 that implements a mean-reversion strategy through a grid of pending orders. It places buy and sell stop orders at calculated distances, using dynamic spread monitoring to ensure execution only during favorable conditions. The EA includes a trailing s
This grid trading robot for MetaTrader 5 automates the placement of multiple limit orders within a user-defined price range. It populates the market with a configurable number of buy and sell limit orders between specified high and low boundaries. The expert advisor includes risk management features such as individual
This MetaTrader 5 expert advisor is designed for gold trading, utilizing a multi-timeframe strategy across the M15, H1, and H4 charts. It integrates technical indicators including ADX, RSI, and Moving Averages to identify trend-following and breakout opportunities. Risk controls include dynamic lot sizing based on acco
This expert advisor facilitates arbitrage trading between futures and spot instruments, primarily targeting gold and stock indices. Available for MetaTrader 4 and 5, it monitors the price difference between two related symbols against a moving average to identify trade opportunities. The logic includes a noise-filterin
AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa
This MetaTrader 5 expert advisor provides an interactive on-chart trading interface for manual execution and automated strategy management. It features dedicated graphical buttons for market entry along with input fields for volume, stop loss, and take profit levels. The repository includes distinct modules for hedging