Auto Master-Slave positions

MQL4 Experts Scripts Forex

Trabalho concluído

Tempo de execução 2 dias
Comentário do cliente
Great job. The EA works like a charm!

Termos de Referência

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,

Respondido

1
Desenvolvedor 1
Classificação
(87)
Projetos
134
14%
Arbitragem
41
22% / 29%
Expirado
14
10%
Livre
2
Desenvolvedor 2
Classificação
(878)
Projetos
1391
67%
Arbitragem
117
32% / 42%
Expirado
215
15%
Livre
3
Desenvolvedor 3
Classificação
(4)
Projetos
4
0%
Arbitragem
1
0% / 100%
Expirado
1
25%
Livre
4
Desenvolvedor 4
Classificação
(94)
Projetos
125
38%
Arbitragem
19
16% / 53%
Expirado
19
15%
Ocupado
5
Desenvolvedor 5
Classificação
(135)
Projetos
192
42%
Arbitragem
17
29% / 59%
Expirado
28
15%
Livre
6
Desenvolvedor 6
Classificação
(149)
Projetos
215
58%
Arbitragem
3
100% / 0%
Expirado
44
20%
Carregado
7
Desenvolvedor 7
Classificação
(45)
Projetos
58
33%
Arbitragem
12
42% / 42%
Expirado
7
12%
Livre
8
Desenvolvedor 8
Classificação
(169)
Projetos
204
30%
Arbitragem
25
40% / 44%
Expirado
12
6%
Livre
9
Desenvolvedor 9
Classificação
(148)
Projetos
164
41%
Arbitragem
5
0% / 80%
Expirado
8
5%
Trabalhando
10
Desenvolvedor 10
Classificação
(64)
Projetos
93
37%
Arbitragem
11
27% / 45%
Expirado
14
15%
Livre
11
Desenvolvedor 11
Classificação
(430)
Projetos
488
33%
Arbitragem
25
40% / 44%
Expirado
7
1%
Carregado
12
Desenvolvedor 12
Classificação
(16)
Projetos
32
47%
Arbitragem
1
0% / 100%
Expirado
8
25%
Livre
13
Desenvolvedor 13
Classificação
(262)
Projetos
536
50%
Arbitragem
54
41% / 37%
Expirado
224
42%
Trabalhando
14
Desenvolvedor 14
Classificação
(54)
Projetos
65
52%
Arbitragem
5
40% / 60%
Expirado
22
34%
Trabalhando
Pedidos semelhantes
Need an EA to be developed based on moving averages and the awesome oscillator. To long an fx pair when the AO flips positive and closes the position when the AO flips negative. Similarly, take a short position when the AO flips negative and closes the short when the AO flips positive. This would be for MT5
I'm seeking a skilled developer to automate my trading strategy. The ideal candidate will have experience in algorithmic trading, proficient in coding languages such as Python or C++, and familiar with trading platforms like MetaTrader5 . The project involves creating a bot that can execute trades based on predefined criteria, manage risk, and adapt to market conditions. Knowledge of financial markets and backtesting
Hi we are looking to create a custom study in Sierra chart. We also have a TradingView Code that we can convert. The study should allow users to plot a series of price levels on a chart. Similar to this. https://www.youtube.com/watch?v=0R73EQxfeGY GitHub: https://github.com/FrozenTundraTrader/sierrachart/blob/main/google_sheets_importer.cpp Can you help
I am Ph.D. in Finance and I just bought 4 EA: EA Reaper, EA Golden Emperador, EA Golden Elephant and, EA Quantum Lab. I need a person that can help me to improve and test my strategy in this EA. I have some Ideas, but I do know how I can improve. Best, Federico Bocca. email: fbocca@summagrupo.com
هل يمكنك مساعدتي؟ أريد تنفيذ إشارة تداول آلية على MT4/MT5 لنظام Android Can you help me I want to implement an automated trading signal on MT4/MT5 for Android Can you help me I want to implement an automated trading signal on MT4/MT5 for Android
Convert Pine Script Trading view To MT4 Convert Attach Script to mt4 with buy and sell signals on Chart and Data Window. The buy and sell signal must be the SAME signals, on the same candles. No deviation
Hell . I need an expirience developer who can create ea based on my conditions. If the job has done i will pay after testing robot and confirmed. I will send code when i am satisfied with developer
Hello, I need to correct two small problems in my mql4 code: '>' - unexpected end of program smp77.mq4 109 18 and '{' - unbalanced parentheses.smp77.mq4 (44, 1) let me know if i can get help. thanks
Creating a customized Forex/Index Rob Bot based on price actions and candlestick formations requires advanced programming and algorithmic trading knowledge. Here is a high-level outline of the steps involved in developing such a bot: 1. Define Trading Strategy: Specify the specific price action and candlestick formations you want the bot to trade upon. This could include setups like engulfing patterns, doji
HEDGING EA 70+ USD
LET ME KNOW IF YOU CAN DO THE JOB SERIOUS PROGRAMMER TO DO EA WITH STRICT DETAILS I HAVE A PICTURE OF THE STRATEGY I DO NOT WANT TO POST IT HERE

Informações sobre o projeto

Orçamento
100+ USD
Desenvolvedor
90 USD
Prazo
de 3 para 5 dias