Auto Master-Slave positions

MQL4 Esperti Script Forex

Lavoro terminato

Tempo di esecuzione 2 giorni
Feedback del cliente
Great job. The EA works like a charm!

Specifiche

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,

Con risposta

1
Sviluppatore 1
Valutazioni
(87)
Progetti
134
14%
Arbitraggio
41
22% / 29%
In ritardo
14
10%
In elaborazione
2
Sviluppatore 2
Valutazioni
(879)
Progetti
1394
67%
Arbitraggio
117
32% / 42%
In ritardo
215
15%
Gratuito
3
Sviluppatore 3
Valutazioni
(4)
Progetti
4
0%
Arbitraggio
1
0% / 100%
In ritardo
1
25%
Gratuito
4
Sviluppatore 4
Valutazioni
(111)
Progetti
141
44%
Arbitraggio
19
16% / 53%
In ritardo
20
14%
Caricato
5
Sviluppatore 5
Valutazioni
(135)
Progetti
193
42%
Arbitraggio
17
29% / 59%
In ritardo
28
15%
Gratuito
6
Sviluppatore 6
Valutazioni
(156)
Progetti
234
59%
Arbitraggio
3
100% / 0%
In ritardo
49
21%
In elaborazione
7
Sviluppatore 7
Valutazioni
(45)
Progetti
58
33%
Arbitraggio
12
42% / 42%
In ritardo
7
12%
Gratuito
8
Sviluppatore 8
Valutazioni
(169)
Progetti
204
30%
Arbitraggio
25
40% / 44%
In ritardo
12
6%
Gratuito
9
Sviluppatore 9
Valutazioni
(158)
Progetti
175
43%
Arbitraggio
6
0% / 67%
In ritardo
8
5%
In elaborazione
10
Sviluppatore 10
Valutazioni
(65)
Progetti
95
36%
Arbitraggio
11
27% / 45%
In ritardo
14
15%
Gratuito
11
Sviluppatore 11
Valutazioni
(493)
Progetti
564
33%
Arbitraggio
27
44% / 44%
In ritardo
9
2%
Occupato
12
Sviluppatore 12
Valutazioni
(16)
Progetti
32
47%
Arbitraggio
1
0% / 100%
In ritardo
8
25%
Gratuito
13
Sviluppatore 13
Valutazioni
(267)
Progetti
542
50%
Arbitraggio
55
40% / 36%
In ritardo
225
42%
Caricato
14
Sviluppatore 14
Valutazioni
(54)
Progetti
65
52%
Arbitraggio
5
40% / 60%
In ritardo
22
34%
In elaborazione
Ordini simili
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."

Informazioni sul progetto

Budget
100+ USD
Per lo sviluppatore
90 USD
Scadenze
da 3 a 5 giorno(i)