Auto Master-Slave positions

MQL4 Experten Skripte Forex

Auftrag beendet

Ausführungszeit 2 Tage
Bewertung des Kunden
Great job. The EA works like a charm!

Spezifikation

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,

Bewerbungen

1
Entwickler 1
Bewertung
(90)
Projekte
136
14%
Schlichtung
43
21% / 28%
Frist nicht eingehalten
14
10%
Frei
Veröffentlicht: 2 Beispiele
2
Entwickler 2
Bewertung
(885)
Projekte
1410
67%
Schlichtung
123
32% / 41%
Frist nicht eingehalten
218
15%
Frei
Veröffentlicht: 1 Beispiel
3
Entwickler 3
Bewertung
(4)
Projekte
4
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
25%
Frei
4
Entwickler 4
Bewertung
(145)
Projekte
169
50%
Schlichtung
22
14% / 55%
Frist nicht eingehalten
22
13%
Frei
5
Entwickler 5
Bewertung
(136)
Projekte
196
43%
Schlichtung
17
29% / 59%
Frist nicht eingehalten
28
14%
Frei
6
Entwickler 6
Bewertung
(178)
Projekte
280
65%
Schlichtung
3
100% / 0%
Frist nicht eingehalten
65
23%
Frei
7
Entwickler 7
Bewertung
(45)
Projekte
58
33%
Schlichtung
12
42% / 42%
Frist nicht eingehalten
7
12%
Frei
8
Entwickler 8
Bewertung
(169)
Projekte
204
30%
Schlichtung
25
40% / 44%
Frist nicht eingehalten
12
6%
Frei
9
Entwickler 9
Bewertung
(171)
Projekte
195
42%
Schlichtung
13
8% / 54%
Frist nicht eingehalten
9
5%
Frei
Veröffentlicht: 3 Beispiele
10
Entwickler 10
Bewertung
(67)
Projekte
97
35%
Schlichtung
11
27% / 45%
Frist nicht eingehalten
13
13%
Frei
11
Entwickler 11
Bewertung
(556)
Projekte
643
33%
Schlichtung
42
40% / 45%
Frist nicht eingehalten
11
2%
Überlastet
12
Entwickler 12
Bewertung
(17)
Projekte
33
45%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
8
24%
Frei
13
Entwickler 13
Bewertung
(271)
Projekte
553
50%
Schlichtung
57
40% / 37%
Frist nicht eingehalten
227
41%
Arbeitet
14
Entwickler 14
Bewertung
(54)
Projekte
65
52%
Schlichtung
5
40% / 60%
Frist nicht eingehalten
22
34%
Arbeitet
Ähnliche Aufträge
Eu preciso disso. A linha central do TMA (17,5,1.5) será a principal referência. Outra linha de média móvel (AVG) de 3 períodos decrescentes 2. As ordens serão as seguintes: abaixo, somente compra de TMA; acima, somente venda de TMA. O sinal de entrada será o seguinte: se o preço estiver acima da Média Móvel Tarifária (TMA), será apenas para venda; quando o preço se mantiver abaixo da Média Móvel Tarifária (AVG)
🔥 Overview Gold Visual Trendline Smart DCA EA is a powerful automated trading system designed specifically for XAUUSD on M1 timeframe . It combines multiple trading concepts into one intelligent system: Dynamic Support & Resistance Automatic trendline detection Candlestick pattern recognition Multi-timeframe trend prediction Smart DCA recovery strategy This EA does not trade randomly — it analyzes market structure
Hola, estoy buscando un desarrollador MQL5 con experiencia real en trading algorítmico. Necesito un EA para XAUUSD con: Control de Drawdown filtro de mercado (tendencia vs rango) gestión de riesgo dinámica optimización para sesiones específicas Antes de avanzar quisiera saber: ¿Qué experiencia tienes con EAs en MT5? ¿Has trabajado con estrategias de oro (XAUUSD)? ¿Cómo gestionas el drawdown en un bot? ¿Puedes mostrar
Double ma 30+ USD
Create an EA on moving averages. The EA will open a trade when the price is above the averages. It will open another when it is below the averages. Ability to work on any timeframe. Ability to use a news filter and a martingale...or to work on a grid
There is a programming god without EA here. I want to find someone to make an EA to operate gold and silver. There is a model, but it can't run. So I want to find someone to make professional improvements to make my EA run. If you are interested, you can WECHAT: 15113958263. Please note EA when adding friends
Iam seeking for a good trade robot/indicator debugging developer to finalize and close profits for me,in both my exneas blocker and MT5,for expert advisor for trading both gold xausd and sliver xagusd,l really want a perfect robot that can herence and risk management principles,not to leave out am a beginner
I am looking for non-repainting indicator to run in all sessions for scalping gold , happy to discuss if you have developed such indicators which can show profit and stop loss levels
Hello! I want to buy two indicators: A Support and Resistence Indicator and a Trendline Indicator. Support and Resistence Indicators needs to automatically draws Support and Resistance lines based on High and Low Candle in every time-frame (If possible time-frame needs to be in inputs and choose by me what time-frame i want indicator to draw lines) Trendline Indicator needs to automatically draws Trendline Channels
Title: SEEKING: Proven SMC/Order Block EA for XAUUSD – Live Track Record Required (<5% Max DD) ​ Job/Request Description: I am looking to acquire or license a high-performance, fully automated Expert Advisor (EA) specifically optimized for XAUUSD (Gold) . The strategy must be strictly based on Smart Money Concepts (SMC) , utilizing Order Blocks, Liquidity sweeps, and Market Structure Shifts (MSS). ​ Technical
A SPECIFICATION: NESTED MULTI-TIMEFRAME MOMENTUM (NMTM) 1. CORE OBJECTIVE The EA is designed to identify institutional Supply and Demand zones on the H4 timeframe that are "nested" within Daily (D1) zones. It filters for high- momentum "Leg-Out" moves and only trades in the direction of the Daily trend. 2. PHASE 1: TREND & CONTEXT FILTERS (DAILY) The EA must first confirm the Daily bias. No H4 zones are valid if they

Projektdetails

Budget
100+ USD
Ausführungsfristen
von 3 bis 5 Tag(e)