Auto Master-Slave positions

MQL4 Asesores Expertos Sripts Fórex

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Great job. The EA works like a charm!

Tarea técnica

Hi,

First of all, I'm new to this, so sorry for the lack of technical knowledge and lexique

I am using MT4. I need a robot (script?) to be automatically executed every X seconds (configurable variable into the file, no dialog needed) and do the following:

  • Get the list of open positions that have no comment
  • For each position (let's call it THIS_POSITION):
    • Get the position info symbol and type
    • Get the list of all other open positions with same symbol and type AND having a comment AND that have SL and/or TP
      • If none is found
        • Close THIS_POSITION
      • Else (let's call them ALL_OTHER_POSITIONS)
        • Get the best* SL and TP from ALL_OTHER_POSITIONS
        • Set those safest SL and TP to THIS_POSITION

*best SL and TP:

  • Closest TP from Open Price (and is > Open Price in case of BUY, opposite for SELL)
  • Farthest SL from Open Price (and is < Open Price in case of BUY, opposite for SELL)

I hope I made it clear

Last point, I said it has to be executed every X seconds, but I don't know if there are better ways to achieve the same (if there are event triggers on Current Price, Position Close...)

Please do not hesitate to ask for clarification


Best,

Han respondido

1
Desarrollador 1
Evaluación
(87)
Proyectos
134
14%
Arbitraje
41
22% / 29%
Caducado
14
10%
Libre
2
Desarrollador 2
Evaluación
(879)
Proyectos
1392
67%
Arbitraje
117
32% / 42%
Caducado
215
15%
Libre
3
Desarrollador 3
Evaluación
(4)
Proyectos
4
0%
Arbitraje
1
0% / 100%
Caducado
1
25%
Libre
4
Desarrollador 4
Evaluación
(108)
Proyectos
138
43%
Arbitraje
19
16% / 53%
Caducado
20
14%
Trabajando
5
Desarrollador 5
Evaluación
(135)
Proyectos
193
42%
Arbitraje
17
29% / 59%
Caducado
28
15%
Libre
6
Desarrollador 6
Evaluación
(153)
Proyectos
227
58%
Arbitraje
3
100% / 0%
Caducado
47
21%
Trabaja
7
Desarrollador 7
Evaluación
(45)
Proyectos
58
33%
Arbitraje
12
42% / 42%
Caducado
7
12%
Libre
8
Desarrollador 8
Evaluación
(169)
Proyectos
204
30%
Arbitraje
25
40% / 44%
Caducado
12
6%
Libre
9
Desarrollador 9
Evaluación
(158)
Proyectos
175
43%
Arbitraje
6
0% / 67%
Caducado
8
5%
Libre
10
Desarrollador 10
Evaluación
(65)
Proyectos
95
36%
Arbitraje
11
27% / 45%
Caducado
15
16%
Libre
11
Desarrollador 11
Evaluación
(463)
Proyectos
524
33%
Arbitraje
28
39% / 43%
Caducado
7
1%
Ocupado
12
Desarrollador 12
Evaluación
(16)
Proyectos
32
47%
Arbitraje
1
0% / 100%
Caducado
8
25%
Libre
13
Desarrollador 13
Evaluación
(266)
Proyectos
540
50%
Arbitraje
55
40% / 36%
Caducado
224
41%
Libre
14
Desarrollador 14
Evaluación
(54)
Proyectos
65
52%
Arbitraje
5
40% / 60%
Caducado
22
34%
Trabaja
Solicitudes similares
I want to decompile an ea file and get the source code, i need it really quick as fast as possible. the file must be delivered alongside the source code
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader 1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and Trailing Draw Down options need to be implemented 5. Risk needs to be in % of
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features

Información sobre el proyecto

Presupuesto
100+ USD
Para el ejecutor
90 USD
Plazo límite de ejecución
de 3 a 5 día(s)