Auto Master-Slave positions

Работа завершена

Время выполнения 2 дня
Отзыв от заказчика
Great job. The EA works like a charm!

Техническое задание

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,

Откликнулись

1
Разработчик 1
Оценка
(90)
Проекты
136
14%
Арбитраж
43
21% / 28%
Просрочено
14
10%
Свободен
Опубликовал: 2 примера
2
Разработчик 2
Оценка
(885)
Проекты
1410
67%
Арбитраж
123
32% / 41%
Просрочено
218
15%
Свободен
Опубликовал: 1 пример
3
Разработчик 3
Оценка
(4)
Проекты
4
0%
Арбитраж
1
0% / 100%
Просрочено
1
25%
Свободен
4
Разработчик 4
Оценка
(145)
Проекты
169
50%
Арбитраж
22
14% / 55%
Просрочено
22
13%
Свободен
5
Разработчик 5
Оценка
(136)
Проекты
196
43%
Арбитраж
17
29% / 59%
Просрочено
28
14%
Свободен
6
Разработчик 6
Оценка
(178)
Проекты
280
65%
Арбитраж
3
100% / 0%
Просрочено
65
23%
Свободен
7
Разработчик 7
Оценка
(45)
Проекты
58
33%
Арбитраж
12
42% / 42%
Просрочено
7
12%
Свободен
8
Разработчик 8
Оценка
(169)
Проекты
204
30%
Арбитраж
25
40% / 44%
Просрочено
12
6%
Свободен
9
Разработчик 9
Оценка
(171)
Проекты
195
42%
Арбитраж
13
8% / 54%
Просрочено
9
5%
Свободен
Опубликовал: 3 примера
10
Разработчик 10
Оценка
(67)
Проекты
97
35%
Арбитраж
11
27% / 45%
Просрочено
13
13%
Свободен
11
Разработчик 11
Оценка
(556)
Проекты
643
33%
Арбитраж
42
40% / 45%
Просрочено
11
2%
Занят
12
Разработчик 12
Оценка
(17)
Проекты
33
45%
Арбитраж
1
0% / 100%
Просрочено
8
24%
Свободен
13
Разработчик 13
Оценка
(271)
Проекты
553
50%
Арбитраж
57
40% / 37%
Просрочено
227
41%
Работает
14
Разработчик 14
Оценка
(54)
Проекты
65
52%
Арбитраж
5
40% / 60%
Просрочено
22
34%
Работает
Похожие заказы
🔥 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
CẦN VIẾT EA SỬA LỖI VÀ PHÁT TRIỂN VÀ THÊM CÁC CHỈ WAR EMA viết bot code mã nguồn Ok, nói rõ luôn: “viết EA” mà không có chiến lược thì chỉ là cái khung chạy lệnh thôi, không kiếm tiền được
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

Информация о проекте

Бюджет
100+ USD
Сроки выполнения
от 3 до 5 дн.