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%
Gratuito
2
Sviluppatore 2
Valutazioni
(878)
Progetti
1391
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
(97)
Progetti
128
40%
Arbitraggio
19
16% / 53%
In ritardo
19
15%
Occupato
5
Sviluppatore 5
Valutazioni
(135)
Progetti
192
42%
Arbitraggio
17
29% / 59%
In ritardo
28
15%
Gratuito
6
Sviluppatore 6
Valutazioni
(149)
Progetti
216
58%
Arbitraggio
3
100% / 0%
In ritardo
44
20%
Caricato
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
(149)
Progetti
165
41%
Arbitraggio
5
0% / 80%
In ritardo
8
5%
In elaborazione
10
Sviluppatore 10
Valutazioni
(64)
Progetti
93
37%
Arbitraggio
11
27% / 45%
In ritardo
14
15%
Gratuito
11
Sviluppatore 11
Valutazioni
(430)
Progetti
488
33%
Arbitraggio
25
40% / 48%
In ritardo
7
1%
In elaborazione
12
Sviluppatore 12
Valutazioni
(16)
Progetti
32
47%
Arbitraggio
1
0% / 100%
In ritardo
8
25%
Gratuito
13
Sviluppatore 13
Valutazioni
(262)
Progetti
536
50%
Arbitraggio
54
41% / 37%
In ritardo
224
42%
In elaborazione
14
Sviluppatore 14
Valutazioni
(54)
Progetti
65
52%
Arbitraggio
5
40% / 60%
In ritardo
22
34%
In elaborazione
Ordini simili
Seeking an expert in LSTM (Long Short-Term Memory) for MT4 to implement the most cutting-edge and advanced form of LSTM with full feature integration. The ideal candidate will possess extensive experience in leveraging LSTM technology within MT4, ensuring optimal performance and profitability. Join us in revolutionizing trading strategies with state-of-the-art LSTM algorithms tailored for MT4. Add a zig zag to the
Need an expert to create an EA based on my strategy for any broker,fast execution of opening and closing trade,also with a condition for take profit,lot size isn't fixed,it should be easy to change without editing the code for a no programmer
Hello there, I have a functional EA that I need a modification done to. Previous developer is overloaded with work and has been dragging his feet. Basically what I need is a modification to the Auto Lot option. Currently you can set a lot size per x amount of account balance and it will auto trade readjusting the lots based on account balance. What I am looking for is a modification that allows me to specify the
Please note that my budget is for both mt4 and mt5 platforms The EA should have 1. An option that I can change it parameters, that's the period, method and application 2. The EA should sell when on every bullish candle that closes under the MA 3. The EA should buy on every bearish candle that forms Above the EA. It's should close trades on reverse cross. I mean when it's in a buy trade and crosses the MA for a sell
Hello, I am looking for someone to convert my MQL4 code project to MQL5. A brief description of my current strategy: MT4 'Spreadsheet' EA collects data from 28 FX currency pairs -> sends it to Excel, then Excel calculates and makes a decision -> Excel sends a signal to MT4 'Trading' EA and manages trades I want the MT4 EA to be converted into MT5. For Back testing purposes, I want to withdraw from using Excel and let
Hey i would like an EA (mt5) the EA will use two indicator which are Moving Average and Parabolic SAR and it should risk 5% of the amount of the account and it should double the account every time it enters a trade and the EA must also increase lots as the account grows
I would need an expert advisor that enters trades base off a indicator on trading view. The indicator is a free indicator on trading view, Which is called TFO Displacement. What needs to happen or the criteria is once the indicator prints a displacement. So once displacement is printed I would love for the EA to immediately open a trade in the direction of the displacement. With a 15 Pips top loss. And a 30 pip take
Welcome I have an Excel file that contains recommendations for buying and selling appears in a specific cell I would like to connect the Excel file to Metatrader 4 to implement these requests directly on metatrader 4 Many outpatient settings settings There is no stop or tP If this appears, the purchase process is indicated that opens one deal and is not closed unless the mark changes to the sale You cannot provide
Eu gostaria que criassem um robo que utilizasse capzack e tunel de vegas com multiplas ordens, seriam 5 ordens no total e o robo precisa interpretar a direçao do capzack
I need an Ea (mt4) with monthly profit 3 -5 % with Drawdown less than 10% if you have any EA with same criteria and with demo version that I can make back testing for it.any one has this EA can send me

Informazioni sul progetto

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