Auto Master-Slave positions

İş tamamlandı

Tamamlanma süresi: 2 gün
Müşteri tarafından geri bildirim
Great job. The EA works like a charm!

İş Gereklilikleri

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,

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(90)
Projeler
136
14%
Arabuluculuk
43
21% / 28%
Süresi dolmuş
14
10%
Serbest
Yayınlandı: 2 kod
2
Geliştirici 2
Derecelendirme
(885)
Projeler
1410
67%
Arabuluculuk
123
32% / 41%
Süresi dolmuş
218
15%
Serbest
Yayınlandı: 1 kod
3
Geliştirici 3
Derecelendirme
(4)
Projeler
4
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
25%
Serbest
4
Geliştirici 4
Derecelendirme
(143)
Projeler
167
49%
Arabuluculuk
22
14% / 55%
Süresi dolmuş
22
13%
Serbest
5
Geliştirici 5
Derecelendirme
(136)
Projeler
196
43%
Arabuluculuk
17
29% / 59%
Süresi dolmuş
28
14%
Serbest
6
Geliştirici 6
Derecelendirme
(174)
Projeler
272
64%
Arabuluculuk
3
100% / 0%
Süresi dolmuş
65
24%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(45)
Projeler
58
33%
Arabuluculuk
12
42% / 42%
Süresi dolmuş
7
12%
Serbest
8
Geliştirici 8
Derecelendirme
(169)
Projeler
204
30%
Arabuluculuk
25
40% / 44%
Süresi dolmuş
12
6%
Serbest
9
Geliştirici 9
Derecelendirme
(171)
Projeler
195
42%
Arabuluculuk
13
8% / 54%
Süresi dolmuş
9
5%
Serbest
Yayınlandı: 3 kod
10
Geliştirici 10
Derecelendirme
(67)
Projeler
97
35%
Arabuluculuk
11
27% / 45%
Süresi dolmuş
14
14%
Serbest
11
Geliştirici 11
Derecelendirme
(539)
Projeler
619
33%
Arabuluculuk
36
36% / 53%
Süresi dolmuş
11
2%
Meşgul
12
Geliştirici 12
Derecelendirme
(17)
Projeler
33
45%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
8
24%
Serbest
13
Geliştirici 13
Derecelendirme
(270)
Projeler
552
49%
Arabuluculuk
58
40% / 36%
Süresi dolmuş
228
41%
Çalışıyor
14
Geliştirici 14
Derecelendirme
(54)
Projeler
65
52%
Arabuluculuk
5
40% / 60%
Süresi dolmuş
22
34%
Çalışıyor
Benzer siparişler
PrimeFlowEA — v1 Specification Objective: PrimeFlowEA v1 is designed to enforce disciplined, rule-based execution within a single daily trading session. The goal of v1 is correct behavior and execution discipline , not optimization or performance tuning. 1. Market & Time Platform: MetaTrader 5 (MQL5) Symbol(s): User-selectable (single symbol per chart) Execution timeframe: Configurable (default: M5 / M15)
Specifications – Development of an MQL5 Expert Advisor (Reverse Engineering) Project context: I have access to a real trading history consisting of more than 500 trades executed over a period of approximately 3 years. These trades have been exported into a CSV file containing all available information, including date, time, symbol, order type, entry price, and exit price. Important: I do not have access to the
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi
Trading Bot Executes Trades on Specific Days via TradingView Alerts **As a** trader, **I want** to develop a trading bot that integrates with TradeLocker and MTS, **So that** when a TradingView alert (based on a 2,4,5,10,15,30 minute break and retest strategy whichever one) is triggered first. the bot will execute trades on both platforms, but only on specific days of the week. --- ## Acceptance Criteria 1
Project Description I am looking to collaborate with an experienced MQL5 / algorithmic trading developer who also has hands-on experience with Large Language Models (LLMs) and AI-driven systems. This is a long-term partnership opportunity , not a one-off paid freelance job. I bring 9 years of practical Elliott Wave trading experience , applied in live market conditions. The objective is to translate Elliott Wave
Hello, I’m looking for an experienced MT4 (MQL4) developer to convert the Lucky Reversal indicator from indicatorspot.com into a fully functional Expert Advisor (EA). Project Scope Code an MT4 EA that replicates the exact logic and signals of the Lucky Reversal indicator Trades should open and close automatically based on the indicator’s rules Must match indicator behavior 1:1 (no approximations) EA Requirements MT4
Looking for a developer to develop or provide past expert advisor that can cope with high impact news and high trends. needs to be mt5. Any strategy necessary. need to be able to backtest myself or see past results. Minimum profit per month 30% but needs to be very low drawdown. Can be one shot trade a day or a 1 min scalper ea. I will not be going to telegram to discuss further
specification High-Frequency Candle Momentum Scalper 1. Strategy Overview Core Logic: The EA identifies the current color of the active candle (Bullish or Bearish). Entry Trigger: It opens positions only after a specific duration of the candle has passed (e.g., after 30 seconds on a 1-minute candle) to confirm the direction. 2. Entry Logic (The "Half-Candle" Rule) Timeframe: M1 (Default, but adjustable). Time Filter
Looking for experience MT5 developer to build a rule-based EA using Volume Profile concept. Only developer with proven past experience working with Volume Profile indicator (ie, VAH, VAL, POC, session profiles or anchored profiles) will be considered. Interested developer must submit a screenshot or video clip of a past project involving Volume Profile, before being shortlisted. Specification will only be shared and
My expert already has the rest of the required features implemented . Bring in your support and resistance expert to save time . My expert already has money management , session filter etc . Trailing is threshold based . Please send a picture as well to show your expert on a live chart . Most specific is the 5m tf , to 1m execution

Proje bilgisi

Bütçe
100+ USD
Son teslim tarihi
from 3 to 5 gün