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%
Travail
2
Développeur 2
Évaluation
(879)
Projets
1394
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
(111)
Projets
141
44%
Arbitrage
19
16% / 53%
En retard
20
14%
Chargé
5
Développeur 5
Évaluation
(135)
Projets
193
42%
Arbitrage
17
29% / 59%
En retard
28
15%
Gratuit
6
Développeur 6
Évaluation
(156)
Projets
234
59%
Arbitrage
3
100% / 0%
En retard
49
21%
Travail
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
(158)
Projets
175
43%
Arbitrage
6
0% / 67%
En retard
8
5%
Travail
10
Développeur 10
Évaluation
(65)
Projets
95
36%
Arbitrage
11
27% / 45%
En retard
14
15%
Gratuit
11
Développeur 11
Évaluation
(493)
Projets
564
33%
Arbitrage
27
44% / 44%
En retard
9
2%
Occupé
12
Développeur 12
Évaluation
(16)
Projets
32
47%
Arbitrage
1
0% / 100%
En retard
8
25%
Gratuit
13
Développeur 13
Évaluation
(267)
Projets
542
50%
Arbitrage
55
40% / 36%
En retard
225
42%
Chargé
14
Développeur 14
Évaluation
(54)
Projets
65
52%
Arbitrage
5
40% / 60%
En retard
22
34%
Travail
Commandes similaires
Hello Devs. I need someone who can make for me full Working traders dashboard on MT5. Dashboard functions: Few TPs levels based on pips in profit and/or %. Fixed lot position calculator so i can put for example 40pips SL and ea will calculate Lot size based on my account size. Plus few other features. Need to looks professional not a Old bios program. Please only apply if You have experience in this
Fintech robots 30+ USD
Specification I need a grid ea that puts buy stops and sell stops on the chart (only stops no limits). See image Example: if the price moves up filling the buy stops. The ea should place new sell stops below the price for the set parameters. And vice versa. Also if price moves up it should place new buy stops above the last buy stop. So if the parameter is set to 50 buy stops. There should always be 50 buy stops in
Develop a multi-strategies EA that makes entries based on selectable indicator-based criteria. Each can be toggled on/off, and trades can also be placed using a selectable combination of signals. Each trade position shall be entered on the bar and managed as a modified martingale. Position management will include partial close, variable grid increase as grid number increases, News stops, and a Dashboard for manual
Hello, In need an expert advisor that can copy my CFD (GBPUSD) into Futures 6B, along with AUDUSD. & that whenever I close the position, it closes it aswell. Also if there is limited broker API access, I don't mind getting a broker recommendation
I need an EA that opens trades according to the crossover of Moving Averages. The EA is based on two Moving Averages MA1 and MA2: For every new candle the EA attempts to open a new position, according to the MA crossover direction: If MA1>MA2, open a BUY position If MA1<MA2, open a SELL position There is a limit for current open trades which is also set in the settings. If the number of open trades reaches that
Good day to you sir. Please can you help me with converting an options trading platform to MT4? I am talking about Pocket Options OTC Markets. Please kindly read the WORD DOCUMENT attached to this chat below! Tbh I want a 100% OTC accuracy. I thought of the possibility of converting a chart beyond the live display/execution? Is it possible to display a market on MT4 2 to 3 minutes faster than the live charts? I mean
the code wasn't mine, i have got it somewhere on the web, but i like the performance of the EA, so i want to use it on mt5 platform. the given code based on price movements with ladder entry concept
Preciso de um EA, que faça o fecho automático de operações abertas no final da sessão e nas notícias de alto impacto. Um EA simples com apenas 1 função. Fecho das operações abertas
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Thanks in advance."

Informations sur le projet

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