Modification of existing MT5 EA, that monitors the PROFIT of open positions and turns ON or OFF the ALGO TRADING.

MQL5 Indicadores Asesores Expertos

Tarea técnica

EA requirements and necessary correction to be done.

 

The EA monitors the PROFIT of open positions and turns ON or OFF the ALGO TRADING accordingly.

 

By PROFIT I mean the SUM of profit + commission + swap.

The EA will have two strategies, the INITIAL and the SECONDARY. Each one of them will be selectable by the user in the EA inputs.

 

Let me explain here how the EA will operate:

1.      INITIAL strategy: 

·        There will be a lower DD limit (in currency units e.g. -70€), selectable by the user in the EA inputs.

·        If the profit moves downwards and crosses the limit of -70€, the EA will place a hedge opposite position (in order to freeze the loss) and then will turn OFF the ALGO TRADING.

·        The user can enable or disable the placement of the hedge opposite position in the EA inputs. 

·        Then if the profit will move upwards and crosses the lower DD limit of -70€, the EA will do nothing, the ALGO TRADING will remain OFF.

·        Then if the PROFIT will move further upwards to 0€ and all the open positions have been closed, there will be a DELAY of some seconds (1 to 120 sec. selectable by the user in the EA inputs), and then the EA will turn ON the ALGO TRADING.

·        During all this process the user can turn OFF or ON the ALGO TRADING manually. 

2.      SECONDARY strategy:

·        There will be an upper DD limit (e.g. -80€) and a lower DD limit (e.g. -150€), both of them selectable by the user in the EA inputs.

·        If the profit moves downwards and crosses the upper DD limit of -80€, there will be a DELAY of some seconds (1 to 120 sec. selectable by the user in the EA inputs), and then the EA will turn ON the ALGO TRADING. 

·        Then if the profit moves further downwards and crosses the lower DD limit of -150€, the EA will place a hedge opposite position (in order to freeze the loss) and then will turn OFF the ALGO TRADING.

·        The user can enable or disable the placement of the hedge opposite position in the EA inputs.

·        Then if the profit moves upwards and crosses the lower DD limit of -150€ or even the upper DD limit of -80€, the EA will do nothing, the ALGO TRADING will remain OFF.

·        During all this procedure the user can turn OFF or ON the ALGO TRADING manually. 

 

The concept of the EA is:

To run the initial and the secondary strategies on the same account but on two (or more) different and completely separated terminals.

So when the ALGO TRADING is disabled on the one terminal, will be enabled on the other terminal.

The EA will disable ALGO TRADING once, when the profit moves downwards (not upwards) and the lower DD limit first reached. After that the ALGO TRADING will remain disabled.

The ALGO TRADING in the INITIAL strategy will be enabled again only when all open positions have been closed and the profit is 0€.

The ALGO TRADING in the SECONDARY strategy will be enabled again only if and when the profit moves downwards (not upwards) and crosses the upper DD limit.

 

The problem of the present EA’s logic, which needs correction:

The EA enables the ALGO TRADING when the profit moves upwards and the lower DD limit is crossed (from lower to higher profit).

The ALGO TRADING in the SECONDARY strategy must be enabled only if and when the profit moves downwards (not upwards) and crosses the upper DD limit.

The ALGO TRADING in the INITIAL strategy must be enabled only when all open positions have been closed and the profit is 0€.

Han respondido

1
Desarrollador 1
Evaluación
(209)
Proyectos
281
46%
Arbitraje
27
59% / 37%
Caducado
36
13%
Libre
2
Desarrollador 2
Evaluación
(250)
Proyectos
313
28%
Arbitraje
33
27% / 64%
Caducado
10
3%
Trabaja
3
Desarrollador 3
Evaluación
(530)
Proyectos
802
62%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
Ha publicado: 1 ejemplo
4
Desarrollador 4
Evaluación
(38)
Proyectos
51
20%
Arbitraje
15
27% / 67%
Caducado
7
14%
Libre
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(52)
Proyectos
68
59%
Arbitraje
5
0% / 80%
Caducado
5
7%
Libre
Ha publicado: 1 artículo
6
Desarrollador 6
Evaluación
(12)
Proyectos
19
42%
Arbitraje
3
0% / 67%
Caducado
3
16%
Libre
7
Desarrollador 7
Evaluación
(252)
Proyectos
258
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
8
Desarrollador 8
Evaluación
(308)
Proyectos
553
35%
Arbitraje
79
32% / 42%
Caducado
200
36%
Trabajando
9
Desarrollador 9
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(3)
Proyectos
1
100%
Arbitraje
3
0% / 100%
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(50)
Proyectos
64
20%
Arbitraje
11
27% / 55%
Caducado
5
8%
Libre
12
Desarrollador 12
Evaluación
(22)
Proyectos
29
3%
Arbitraje
4
25% / 0%
Caducado
3
10%
Trabaja
13
Desarrollador 13
Evaluación
(10)
Proyectos
14
43%
Arbitraje
0
Caducado
3
21%
Libre
14
Desarrollador 14
Evaluación
(1)
Proyectos
3
0%
Arbitraje
0
Caducado
2
67%
Trabaja
Solicitudes similares
PROJECT DESCRIPTION Looking for 1 experienced MQL5 developer to build 2 Expert Advisors for MetaTrader 5, targeting XAUUSD and major currency pairs. Strong preference for a single developer handling both EAs to maximize code reuse, reduce cost, and ensure consistency. EA1 — Grid Martingale Pro · Buy/Sell grid with Fixed or ATR Dynamic distance (ATR read once per fill, stored in grid_step_at_open[]) · Gap
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
I am looking for a developer to build a robust MetaTrader 5 Expert Advisor for Gold (XAUUSD) scalping on the M5 timeframe. The EA must be optimized for small accounts ($200 - $1,000). Technical Requirements: Primary Strategy: Mean Reversion using Bollinger Bands (20, 2.0) and RSI (14). Buy: Price closes below lower band + RSI < 30 + Trend Filter. Sell: Price closes above upper band + RSI > 70 + Trend Filter. Trend
Olá amigos possuo um indicador que não tem o código fonte mas tenho a licença para usar esse indicador que está me trazendo bons resultados no meu operacional desejo automatizar as suas entradas através de um robô funciona mais ou menos da seguinte forma o indicador gera um sinal de compra ou venda e também gera um nível de take profit stop loss.O robô deve fazer a leitura dos sinais e definir TP e SL nos mesmos
An additional indicator signal will be added to the existing EA. The existing mechanical system will NEVER be changed. I will send you the necessary documents and codes. I will send you the necessary documents and codes. thank you
Need MT5 Expert Advisor base on my strategy XAUUSD Fast scalping, Grid , Martingale, TP, SL trailing buy sell both also add magic number fully atumated advance strategy Pro version 24 hours running trades close in profit directly open new trade
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
Hi Developers, I am looking for a EA based on EURUSD where EA is taking multiple trades in a day with small profits in each trade. Looking for some EA based on HFT trading, scalping

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
a 1 día(s)