MT5 Semi-Automatic Positive Pyramiding EA: Cent Account Optimized, Multi-Basket Management, Decreasing Lots, Max Trades, Trailing Stop, Dashboard, and Hard Close All on SL

MQL5 Experts

Specification

Description:
I need a semi-automatic Expert Advisor (EA) developed for MetaTrader 5 (Hedging account, optimized for Exness Cent accounts) to manage my manual trades on Gold (XAUUSD) using a positive pyramiding trend-following strategy.
Detailed Specifications:
1. Multi-Basket Management (Crucial):
  • The EA does NOT open the initial trade. It waits for me to open a manual trade (Buy or Sell).
  • If I open another manual trade while a previous basket is still active, the EA must treat it as a completely independent trade. It must generate a new separate set of SL, TP1, TP2 lines for this new trade and run a separate pyramiding grid based on the new initial lot size, without interfering with the ongoing basket.
2. Interactive Chart Lines & Dashboard:
  • For every independent manual trade, the EA creates 3 interactive chart lines: SL, TP1, and TP2 . I must be able to drag and drop these lines with my mouse during an active trade to change the SL/TP levels of that specific basket in real-time.
  • Display a clean graphical panel (Dashboard) showing real-time metrics: Current PnL ($ / Pips), Total Volume (Lots), Average Price, Potential Profit at TP2, and Potential Risk at SL.
3. Pyramiding Logic (Decreasing Lot Size & Max Trades):
  • The EA will pre-place Pending Stop Orders (Buy Stop / Sell Stop) in the direction of the manual trade, spaced by an adjustable distance (Grid Step in pips).
  • Pyramid Calculation: The lot size of subsequent orders must dynamically decrease based on the initial trade's volume using a multiplier input (Multiplier default = 0.5). (Example if 1st trade = 1.00 lot: 2nd trade = 0.50 lot, 3rd trade = 0.25 lot, 4th trade = 0.12 lot, etc.) . Must handle Cent account fractions correctly (2 decimal places).
  • Max Trades Limit: Add an input parameter "Max_Trades" (e.g., default = 4). The EA must stop placing any further pending stop orders once the total number of orders in the current basket reaches this limit.
4. Exit & Risk Management Logic (Per Basket):
  • Take Profit 1 (TP1): When price hits TP1, the EA executes a 50% Partial Close of the total volume of that specific basket and moves its SL to the exact Entry Price of the first manual trade (Entry 1) of that basket.
  • Dynamic Trailing Stop (Post-TP1): After TP1, every time a new positive grid order is triggered, the EA must automatically modify and move the SL of ALL active positions in that specific basket to the Entry Price of this latest triggered order to lock in profits.
  • Take Profit 2 (TP2): Close all remaining positions of the basket when price hits its TP2 line.
  • TOTAL STOP LOSS (CRITICAL): If the market reverses and hits the Stop Loss (SL) line of a basket at any stage, the EA must CLOSE ALL open positions belonging to that specific basket IMMEDIATELY with a robust loop and retry mechanism to ensure no hanging/orphan orders are left on Exness Cent.
  • Manual Close Detection: If I manually close all active market positions of a basket from my phone or terminal, the EA must immediately detect this, automatically delete all remaining pending stop orders associated with that specific basket, and remove its corresponding SL/TP lines from the chart.
Technical Requirements:
  • Optimization for high-volatility execution (Gold), proper error handling for slippage and requotes.
  • The graphical panel must be responsive and not lag the chart.
  • Full source code ( .mq5 ) must be delivered upon completion.


Responded

1
Developer 1
Rating
(580)
Projects
671
32%
Arbitration
42
45% / 45%
Overdue
12
2%
Loaded
2
Developer 2
Rating
(3)
Projects
3
0%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Free
4
Developer 4
Rating
(314)
Projects
560
35%
Arbitration
80
31% / 44%
Overdue
203
36%
Loaded
5
Developer 5
Rating
(4)
Projects
5
0%
Arbitration
1
100% / 0%
Overdue
1
20%
Loaded
6
Developer 6
Rating
(633)
Projects
1001
47%
Arbitration
33
36% / 36%
Overdue
98
10%
Free
Published: 6 codes
7
Developer 7
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
Published: 1 article
8
Developer 8
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
9
Developer 9
Rating
(16)
Projects
20
10%
Arbitration
8
38% / 38%
Overdue
3
15%
Working
10
Developer 10
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(6)
Projects
5
0%
Arbitration
4
25% / 75%
Overdue
2
40%
Free
13
Developer 13
Rating
(16)
Projects
20
0%
Arbitration
10
0% / 80%
Overdue
6
30%
Free
14
Developer 14
Rating
(12)
Projects
16
25%
Arbitration
1
0% / 0%
Overdue
4
25%
Working
15
Developer 15
Rating
(5)
Projects
10
10%
Arbitration
2
0% / 50%
Overdue
2
20%
Working
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
18
Developer 18
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
19
Developer 19
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(47)
Projects
55
33%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
21
Developer 21
Rating
(25)
Projects
31
13%
Arbitration
12
0% / 75%
Overdue
9
29%
Working
22
Developer 22
Rating
(242)
Projects
285
77%
Arbitration
13
69% / 0%
Overdue
4
1%
Working
23
Developer 23
Rating
(199)
Projects
255
21%
Arbitration
23
48% / 17%
Overdue
0
Working
24
Developer 24
Rating
(6)
Projects
7
43%
Arbitration
1
0% / 100%
Overdue
0
Free
25
Developer 25
Rating
(543)
Projects
824
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
26
Developer 26
Rating
(40)
Projects
43
58%
Arbitration
1
100% / 0%
Overdue
1
2%
Working
Published: 5 codes
27
Developer 27
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
28
Developer 28
Rating
(2)
Projects
2
100%
Arbitration
0
Overdue
0
Working
29
Developer 29
Rating
(11)
Projects
18
28%
Arbitration
4
50% / 50%
Overdue
1
6%
Free
30
Developer 30
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
31
Developer 31
Rating
(75)
Projects
85
28%
Arbitration
8
13% / 63%
Overdue
4
5%
Working
32
Developer 32
Rating
(169)
Projects
202
48%
Arbitration
5
20% / 60%
Overdue
2
1%
Free
33
Developer 33
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
34
Developer 34
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
//+------------------------------------------------------------------+ //| $10 Smart Scalping Bot for MT5 | //| EURGBP + AUDUSD + XAGUSD Optimized | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //========================= INPUTS ================================== input double LotSize = 0.01; input int FastEMA = 20; input int SlowEMA =
1. Project Overview & Strategic Objective We are seeking an elite, senior-level MQL developer to design and engineer a bulletproof, proprietary MT4 non-standard bar generation application. The primary objective of this project is to build an independent, institutional-grade charting infrastructure to permanently eliminate third-party plugin dependency risks (highlighted by legacy solutions like AZ-INVEST going
Hello, I am looking to develop a commercial-grade Expert Advisor for MT5 specifically optimized for XAUUSD (Gold). The underlying logic should be an intelligent, trend-filtered cost-averaging grid system focused on capital preservation. The EA must include the following functional architecture: 1. Core Strategy Structure: - Must feature a multi-strategy logic entry module. I want to use a combination of 3-4 standard
MT5 Indicator – QML (Quasimodo Left) Pattern I need an experienced MQL5 developer to build a custom MT5 indicator based on the QML Quasimodo pattern as used in SMC/ICT trading. I will attach reference screenshots showing exactly how the pattern should look. The indicator must detect and draw: 1. QML pattern structure — HH, HH, HL, LL swing labels with the QML level drawn as a horizontal dotted line at the last Higher
Am looking for Professional programmer who can build below analysis bot as specified below. The indicators will be provided. 🔷 1. CORE ARCHITECTURE OF YOUR EA Your EA has 3 modes: ✅ Mode 1: Indicator 1 Strategy (9-Signal Engine) ✅ Mode 2: Indicator 2 Strategy (Multi-indicator confluence) ✅ Mode 3: Hybrid Mode (Indicator 1 filters Indicator 2) 🔷 2. PAIR SELECTION LOGIC EA will NOT auto-scan market (based on your
Matriks programında güzel bir stratejim var, meta da kayıtlı olmayan iki indikatörümü de metaya yükledim, stratejim belli, ama robot oluşturmak konusunda bilgim eksik. Yardım istiyorum. Acil dönüş bekliyorum. 12-276 üssel ortalamayı hangi yöne keserse, alphatrend indikaörüde bunu desteklesin, kendi gömdüpüm diğer bir indikatörde seviyelere göre alsın satsın
Hi all I would like a strategy to be developed for LIMT ORDERS strategy for both Buy/sell limit for XAUUSD, US30 & DE30/40 on the M1 or M5 chart . I have my EA but it's not profitable. It should be a Limit order strategy with a profit factor of 2+ when back testing . You should consider that My EA has trailing stop and a trailing limit order. I have experience in coding in MQL4/5, I'm currently struggling I with
Hi i have an expert that takes trade after rsi and stochastic oscillator. Same type of ea for mt4 and mt5 Some of the future or options i have is. I copy this from the old requirement specification. Magic number default to 1= if several ea of this model is in use on different charts different currency pairs max trades and max losing trades is not over runed. If i chose 1 like an example for all off them. Only one
MT5 EA Developer for Structured ICT/SMC Market Logic Requirements Specification: I need an MT5 Expert Advisor only in MQL5. No indicator, no script, no DLL, and no external API. The EA must be built on a rule-based ICT/SMC-style framework with objective, backtestable logic. I am not looking for social-media-style ICT/SMC interpretation. I need a developer who can convert trading concepts into clear coding rules. The
Hi all, I am looking for a top-rated, experienced MQL5 developer to code Phase 1 (Retail Version) of an advanced Expert Advisor for MetaTrader 5. Key Requirements: 1. Pure Price Action Strategy: Uses H4 Trend Filter (Swing High/Low) and H1 Execution (Wick Scanning >= 66% & Engulfing Candlesticks). Places orders via Buy/Sell Limit at Fibonacci 50% level of the candle body (with Giant Candle threshold rules). 2

Project information

Budget
30+ USD
Deadline
from 3 to 5 day(s)

Customer

Placed orders1
Arbitrage count0