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
(90)
Progetti
136
14%
Arbitraggio
43
21% / 28%
In ritardo
14
10%
Gratuito
Pubblicati: 2 codici
2
Sviluppatore 2
Valutazioni
(885)
Progetti
1410
67%
Arbitraggio
123
32% / 41%
In ritardo
217
15%
Gratuito
Pubblicati: 1 codice
3
Sviluppatore 3
Valutazioni
(4)
Progetti
4
0%
Arbitraggio
1
0% / 100%
In ritardo
1
25%
Gratuito
4
Sviluppatore 4
Valutazioni
(145)
Progetti
169
50%
Arbitraggio
22
14% / 55%
In ritardo
22
13%
Gratuito
5
Sviluppatore 5
Valutazioni
(136)
Progetti
196
43%
Arbitraggio
17
29% / 59%
In ritardo
28
14%
Gratuito
6
Sviluppatore 6
Valutazioni
(182)
Progetti
289
64%
Arbitraggio
3
100% / 0%
In ritardo
65
22%
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
(171)
Progetti
195
42%
Arbitraggio
13
8% / 54%
In ritardo
9
5%
Gratuito
Pubblicati: 3 codici
10
Sviluppatore 10
Valutazioni
(67)
Progetti
97
35%
Arbitraggio
11
27% / 45%
In ritardo
13
13%
Gratuito
11
Sviluppatore 11
Valutazioni
(611)
Progetti
711
33%
Arbitraggio
45
49% / 42%
In ritardo
14
2%
In elaborazione
12
Sviluppatore 12
Valutazioni
(17)
Progetti
33
45%
Arbitraggio
1
0% / 100%
In ritardo
8
24%
Gratuito
13
Sviluppatore 13
Valutazioni
(271)
Progetti
553
50%
Arbitraggio
57
40% / 37%
In ritardo
227
41%
In elaborazione
14
Sviluppatore 14
Valutazioni
(54)
Progetti
65
52%
Arbitraggio
5
40% / 60%
In ritardo
22
34%
In elaborazione
Ordini simili
Custom MT5 EA for buy stop and sell stop breakout strategy.’ ‘Requirements, develop a custom Expert Advisor for MetaTrader 5 that places buy-stop and sell-stop pending orders based on defined breakout rules.’ ‘All important values adjustable via inputs.’ ‘Includes stop loss, take profit, trailing stop, and configurable risk management.’ ‘One trade at a time, works on demo before live.’ Provide source code and
السلام عليكم ورحمة الله وبركاته، ​أبحث عن مبرمج MQL5 خبير ومتمكن جداً لتطوير روبوت تداول (Expert Advisor) محترف لمنصة MetaTrader 5 يعمل باستراتيجية هيدج محددة بصفقة واحدة فقط في كل اتجاه (1 Buy & 1 Sell Max) مع إدارة مخاطر صارمة. ​المواصفات والاستراتيجية المطلوبة: ​1. آلية الهيدج المحدود (Single Position Hedging Limit): ​الحد الأقصى للصفقات: يُسمح للروبوت بفتح صفقة شراء واحدة (1 Buy) وصفقة بيع واحدة (1 Sell) فقط كحد
A good trend predicting indicator is the one which can identify the trend change as soon as it happens on the chart. when a new candle is formed it should tell whether its going to go up or down. I have already seen a lot of repainting trend predictors so if your indicator is repainting then please don't bother contacting. I would like to see the demo version and then if satisfied , I would want the source code too
Looking for A verifiable, disciplined XAUUSD analyst with controlled drawdown, consistent stop-loss use, clear communication and the capacity to service a live community. To send daily London and New York signals exclusively in my channel on Telegram
Platform MetaTrader 5 (MT5) MQL5 Source Code Required Compatible with Exness MT5 both standard and cent accounts/ICMarket accounts Works on EUR/USD only (initial version) ⸻ Objective Develop a fully automated AI Expert Advisor based on ICT Smart Money Concepts (SMC). The EA must only execute high-probability trades that satisfy all required conditions before opening a position. The EA must avoid overtrading and
Bonjour, je recherche un développeur MQL5 expérimenté pour créer un Expert Advisor pour MetaTrader 5 basé sur une stratégie de trading intégrant des principes de gestion des risques rigoureux et d'intelligence financière. Le robot doit être capable de gérer plusieurs paires de devises et d'optimiser automatiquement les entrées et sorties en fonction de conditions de marché prédéfinies."
MT4/MT5 HFT EA us30 30 - 3000 USD
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the
I'm looking for an experienced NinjaTrader 8 (C#) developer to build a fully automated futures trading strategy. Please apply only if you have proven experience developing and testing NinjaTrader strategies. Project Overview Develop a fully automated NinjaTrader 8 strategy. Designed for Apex funded and evaluation accounts. Primary instruments: NQ/MNQ Futures (with flexibility to support other futures later). Trading
Hello I need to purchase the source code of an already built profitable mt5 EA with proven track recordIf you have something similar and you are open to selling the source code please apply to this post Please note I am not looking for a dev to build the product from scratch , but need something that is already built and have at least one year worth of track record
I need an Expert Advisor for MT5 on XAUUSD 1min timeframe using SMC concepts. STRATEGY RULES: SELL: 1. Identify previous day High/Low as liquidity 2. Entry only during London-NY session: 15:00-19:00 GMT+3 or broker clock. 3. If price sweeps previous day High and closes back below it 4. Check for bearish 1min FVG below sweep candle 5. Wait for BOS - lower low 6. Entry: Sell/buy at 50% of the FVG 7. SL: 10 pips above

Informazioni sul progetto

Budget
100+ USD
Scadenze
da 3 a 5 giorno(i)