Auto Master-Slave positions

MQL4 Experts Scripts Forex

Tâche terminée

Temps d'exécution 2 jours
Commentaires du client
Great job. The EA works like a charm!

Spécifications

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,

Répondu

1
Développeur 1
Évaluation
(87)
Projets
134
14%
Arbitrage
41
22% / 29%
En retard
14
10%
Gratuit
2
Développeur 2
Évaluation
(878)
Projets
1391
67%
Arbitrage
117
32% / 42%
En retard
215
15%
Gratuit
3
Développeur 3
Évaluation
(4)
Projets
4
0%
Arbitrage
1
0% / 100%
En retard
1
25%
Gratuit
4
Développeur 4
Évaluation
(94)
Projets
125
38%
Arbitrage
19
16% / 53%
En retard
19
15%
Occupé
5
Développeur 5
Évaluation
(135)
Projets
192
42%
Arbitrage
17
29% / 59%
En retard
28
15%
Gratuit
6
Développeur 6
Évaluation
(149)
Projets
215
58%
Arbitrage
3
100% / 0%
En retard
44
20%
Chargé
7
Développeur 7
Évaluation
(45)
Projets
58
33%
Arbitrage
12
42% / 42%
En retard
7
12%
Gratuit
8
Développeur 8
Évaluation
(169)
Projets
204
30%
Arbitrage
25
40% / 44%
En retard
12
6%
Gratuit
9
Développeur 9
Évaluation
(148)
Projets
164
41%
Arbitrage
5
0% / 80%
En retard
8
5%
Travail
10
Développeur 10
Évaluation
(64)
Projets
93
37%
Arbitrage
11
27% / 45%
En retard
14
15%
Gratuit
11
Développeur 11
Évaluation
(430)
Projets
488
33%
Arbitrage
25
40% / 44%
En retard
7
1%
Chargé
12
Développeur 12
Évaluation
(16)
Projets
32
47%
Arbitrage
1
0% / 100%
En retard
8
25%
Gratuit
13
Développeur 13
Évaluation
(262)
Projets
536
50%
Arbitrage
54
41% / 37%
En retard
224
42%
Travail
14
Développeur 14
Évaluation
(54)
Projets
65
52%
Arbitrage
5
40% / 60%
En retard
22
34%
Travail
Commandes similaires
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

Informations sur le projet

Budget
100+ USD
Pour le développeur
90 USD
Délais
de 3 à 5 jour(s)