MT5 Grid EA with Advanced Restart Recovery & No Duplicate Logic (Professional Project)”

MQL5 Experts

Job finished

Execution time 48 days
Feedback from employee
Excellent client to work with. Clear requirements, professional communication, and smooth collaboration throughout the project

Specification

📌 EXPERT ADVISOR (EA) DEVELOPMENT
COMPLETE A–Z FINAL REQUIREMENT DOCUMENT (FINAL VERSION)
1. 🔐 SECURITY SYSTEM (MANDATORY)

The EA must include strict security checks.
If any security condition fails, EA must immediately STOP trading.

1.1 Account Lock
#define ALLOWED_ACCOUNT 5047656761
EA must run ONLY on this account number
If account does not match:
❌ EA stops trading
🚨 Alert message
📲 Telegram notification to owner
1.2 Hardware / PC Lock
#define ALLOWED_PC_ID "XXXXXXXXXXXX"
EA must verify the hardware / PC ID
If PC ID does not match:
❌ EA stops trading
🚨 Alert message
📲 Telegram notification to owner
1.3 Unauthorized Access Handling

If any of the following occurs:

Account mismatch
PC ID mismatch
EA copied or moved

👉 EA must:

Immediately stop all trading actions
Send Telegram alert
Display terminal alert
Prevent further execution
2. ⚙️ GLOBAL SETTINGS (ONLY #define, NO INPUT PARAMETERS)

⚠️ No input parameters are allowed
⚠️ All settings must be via #define only

#define CLIENT_NAME        "Aakash"
#define BOT_TOKEN          "8694370443:AAG4Ml6OSPdsDC-Ji4S1utJlI7IgrZxWVyQ"
#define OWNER_CHAT_ID      "1390975665"
#define PROFIT_SHARE       25   // Percentage
Rules:
❌ No input variables allowed
❌ No runtime modification
✅ These values must be readable across the EA
✅ Used for Telegram messages, logs, and identification
3. ABSOLUTE & NON-NEGOTIABLE DEVELOPMENT RULES

These rules must be followed strictly:

❌ Do NOT modify the existing grid logic
❌ Do NOT touch or change OnTradeTransaction()
❌ Do NOT modify any existing functions
✅ All new logic must be added ONLY at the TOP of the code
✅ All controls must be via #define only
❌ No new input parameters allowed
✅ When the advanced system is OFF, the EA must behave 100% exactly like the original EA
❌ No workaround, shortcut, or logic replacement allowed
4. MASTER ON / OFF SYSTEM
#define ADVANCED_COOLDOWN_SYSTEM   true   // true = ON, false = OFF
Behavior:
OFF
EA works exactly like the original EA
No restriction, no filter, no cooldown
ON
All advanced rules apply
Security, Telegram, panel must remain active
5. DAILY FIXED PRICE-BASED COOLDOWN (CRITICAL)
Core Rule:
Cooldown is NOT rolling
Cooldown is checked ONLY within the same trading day
Logic:
At the start of a new trading day:
Lock a daily reference price
If during the same day price drops by defined cooldown distance:
Cooldown = ON
If price does not drop that much:
Cooldown must NOT activate
Next day:
Reference price resets
Previous day movement ignored
6. COOLDOWN MODE BEHAVIOR

When Cooldown = ON:

❌ No NEW grid orders allowed
❌ Skipped grids must be recorded as MISSED GRIDS
✅ Existing trades continue normally:
Partial closing
Trade management
Sell logic
7. COOLDOWN OFF → MISSED GRID RECOVERY
Missed grids must be placed ONLY when price reaches exact grid level
❌ No blind market orders
❌ No batch placement
❌ No overlapping orders
8. DAILY GREEN CANDLE FILTER (50%+ BODY)

(Only when Advanced System is ON)

Conditions:

Previous daily candle must be GREEN
Body size ≥ 50% (50–100 allowed)
Candle HIGH must be broken

If conditions fail:

❌ No new grids
✅ Existing trades unaffected
9. FAST MARKET MOVEMENT – ORDER SKIP HANDLING
Detect skipped orders
❌ Never force execution
❌ Never place blind market orders
✅ Put skipped orders in WAIT MODE
✅ Execute only when price reaches exact required level
10. 🚨 CRITICAL RULE – PARTIAL CLOSE MUST NEVER STOP

Partial closing must NEVER stop under any circumstances.

Includes:

Cooldown ON
Advanced system ON
Fast market
Order skipped
EA restart
VPS crash

Rules:

❌ Partial close must not be blocked by any filter
❌ Partial close logic must not be changed
✅ Original behavior must remain intact
✅ If skipped → wait → execute at correct price
11. 🔁 EA STOP / RESTART / CRASH RECOVERY

If EA is stopped, MT5 closed, or VPS restarted:
ing{variant="chat_message" id="99127"}
PROJECT: MT5 GRID EA – STABLE VERSION WITH RESTART RECOVERY

IMPORTANT: Read everything carefully before accepting. No changes or extra charges will be accepted later.

------------------------
1. CORE REQUIREMENT
------------------------
The EA must work exactly like a grid trading system with partial closing.

The MOST IMPORTANT requirement:
👉 If EA is stopped, removed, MT5 closed, or VPS restarted,
👉 It MUST continue from existing trades
👉 It must behave as if it was NEVER stopped

------------------------
2. RESTART / RECOVERY LOGIC (CRITICAL)
------------------------
On every start:
- Scan all open trades
- Scan all pending orders
- Detect current grid level
- Detect missed grid levels
- Detect missed partial closes

Rules:
❌ Do NOT start a new grid
❌ Do NOT place duplicate orders
❌ Do NOT assume fresh start

✅ Continue from existing trades only
✅ Place only missing orders at correct levels
✅ Maintain same lot sequence

------------------------
3. PARTIAL CLOSE (VERY IMPORTANT)
------------------------
- Partial closing must NEVER stop
- Must work in all conditions:
  - EA restart
  - VPS crash
  - fast market movement

If price already crossed levels:
👉 Execute all missed partial closes immediately

------------------------
4. DUPLICATE ORDER PROTECTION
------------------------
Before placing any order:
- Check if order already exists at that level

If exists:
❌ DO NOT place duplicate

------------------------
5. MISSED GRID HANDLING
------------------------
If EA was OFF and levels were missed:
- DO NOT place market orders blindly
- Place orders only at exact grid levels when price reaches them

------------------------
6. TESTING REQUIREMENT
------------------------
- Developer must test restart multiple times
- Stop → Start → Verify logic
- No duplicate orders
- Partial close must work perfectly

------------------------
7. DELIVERY CONDITIONS
------------------------
- Only working version must be sent
- No half-complete work
- No trial versions

------------------------
8. PAYMENT CONDITION (VERY IMPORTANT)
------------------------
- Fixed budget: XXX USD (no changes later)
- No extra payment requests allowed
- Payment ONLY after:
  - Full testing on my side
  - 100% working system

------------------------
9. FORWARD TEST (3 MONTHS)
------------------------
- I will do forward testing for 3 months
- If major bugs are found:
  - Developer must fix them
  - No extra charges

------------------------
FINAL CONDITION:
If you accept this project, it means:
✔️ You agree to ALL conditions
✔️ You will NOT ask for extra money later
✔️ You will deliver a COMPLETE working EA

If you do not 
Scan existing open trades
Scan pending orders
Detect current grid level
Detect missed grids and partial closes
❌ Do NOT start a fresh grid
❌ Do NOT assume clean start
✅ Continue strictly from existing trades
✅ Behave as if EA was never stopped
12. PANEL & TELEGRAM (MUST REMAIN ACTIVE)
Panel:
Cooldown status (ON/OFF)
Advanced system status (ON/OFF)
Active grid count
Telegram:
EA start / stop
Unauthorized access alerts
Margin alerts
13. STRICT DELIVERY, TESTING & PAYMENT CONDITIONS
✅ Minimum 3 months back-test + forward test
✅ Full MQ5 source code required
❌ EX5-only delivery not allowed
❌ No hidden costs
❌ No extra conditions later
💰 Payment only after full approval
FINAL STATEMENT TO DEVELOPER (SEND AS IS)

This EA must include strict account and hardware locking.
If the EA is stopped or restarted, it must continue trading based on existing trades only.
Partial closing must NEVER stop under any condition.
Skipped orders must wait for the exact price and must never be executed blindly.
Full MQ5 source code is mandatory after 3 months of successful testing.
No hidden costs or logic changes are acceptable.

Files:

Responded

1
Developer 1
Rating
(394)
Projects
555
41%
Arbitration
30
57% / 3%
Overdue
57
10%
Working
Published: 11 codes
2
Developer 2
Rating
(213)
Projects
286
47%
Arbitration
27
59% / 37%
Overdue
36
13%
Free
3
Developer 3
Rating
(3)
Projects
3
0%
Arbitration
1
0% / 100%
Overdue
0
Free
4
Developer 4
Rating
(8)
Projects
8
38%
Arbitration
0
Overdue
0
Working
5
Developer 5
Rating
(106)
Projects
129
25%
Arbitration
24
29% / 54%
Overdue
8
6%
Free
6
Developer 6
Rating
(611)
Projects
711
33%
Arbitration
45
49% / 42%
Overdue
14
2%
Working
7
Developer 7
Rating
(12)
Projects
13
23%
Arbitration
7
0% / 71%
Overdue
3
23%
Working
8
Developer 8
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
Published: 1 article
9
Developer 9
Rating
(14)
Projects
20
20%
Arbitration
3
33% / 67%
Overdue
3
15%
Free
10
Developer 10
Rating
(258)
Projects
267
30%
Arbitration
0
Overdue
3
1%
Working
Published: 2 codes
11
Developer 11
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(81)
Projects
93
31%
Arbitration
9
22% / 56%
Overdue
5
5%
Working
13
Developer 13
Rating
(16)
Projects
20
0%
Arbitration
10
0% / 80%
Overdue
6
30%
Free
14
Developer 14
Rating
(22)
Projects
29
34%
Arbitration
4
50% / 25%
Overdue
5
17%
Working
15
Developer 15
Rating
(4)
Projects
10
50%
Arbitration
1
0% / 100%
Overdue
2
20%
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(46)
Projects
60
53%
Arbitration
7
86% / 0%
Overdue
2
3%
Free
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(21)
Projects
27
7%
Arbitration
9
33% / 33%
Overdue
1
4%
Working
21
Developer 21
Rating
(5)
Projects
6
50%
Arbitration
0
Overdue
1
17%
Free
22
Developer 22
Rating
(5)
Projects
10
20%
Arbitration
1
0% / 100%
Overdue
1
10%
Working
23
Developer 23
Rating
(202)
Projects
263
22%
Arbitration
23
52% / 17%
Overdue
0
Loaded
24
Developer 24
Rating
(31)
Projects
33
42%
Arbitration
0
Overdue
3
9%
Free
25
Developer 25
Rating
(12)
Projects
17
35%
Arbitration
5
40% / 20%
Overdue
1
6%
Working
Published: 6 articles, 34 codes
26
Developer 26
Rating
(298)
Projects
478
40%
Arbitration
105
40% / 24%
Overdue
82
17%
Loaded
Published: 2 codes
27
Developer 27
Rating
(8)
Projects
14
21%
Arbitration
2
0% / 50%
Overdue
3
21%
Working
28
Developer 28
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
29
Developer 29
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
30
Developer 30
Rating
(22)
Projects
24
21%
Arbitration
5
20% / 80%
Overdue
1
4%
Free
Published: 6 codes
Similar orders
Hi MQL5 Community, With over 10 years of live market experience as a Quantitative & Trading System Developer, I specialize in building robust, highly scalable Expert Advisors (EAs), custom indicators, and automated architectures. I’ve recently put together a comprehensive showcase demonstrating my flagship Modular Multi-Engine Architecture , designed to bring institutional-grade logic and real-time telemetry into
I need a developer that can make my trading strategies into a working perfect EA Robot working on Mt5. Candlestick pattern confirmation through PDH, PDL, PWH, PWL, Liquidities, HTF OB
I need a trading bot specially for XAU, high profit gain. Requirements bot analyzes the market places trades closes with 2 to 3 profit per trades daily profit should be 50 to 100 dollars
We are looking for an experienced MQL5 developer to provide a stable, consistently profitable Forex Expert Advisor (EA) capable of generating 10–15% average monthly returns while maintaining the lowest possible drawdown . Our Requirements The EA must have a proven track record of consistent performance. A long-term trading history (live or verified) will be considered a significant advantage. Before final selection
I am looking for a professional MQL5/MT5 Expert Advisor developer to build a fully automated trading bot based on my custom strategy. Requirements: Strong experience in MQL5 (MetaTrader 5) Previous experience developing Forex/Gold Expert Advisors Ability to convert a trading strategy into a fully automated EA Clean, well-structured, and optimized code Good communication and willingness to provide updates during
Only programmers with experience with orderflow please, it's not the easiest project, I don't want to have arbitration etc. I am not expert in orderflow yet, if you have suggestion about strategy it would be very nice. Source of code required, I am searching a programmer for a longer co-operation
Hi, I am looking for an already made profitable EA. It can be an indicator but then it must be possible to make an EA from the indicator. Will need to test before payment (this can be in demo or limited time test). I will pay up to $6000. Do not apply if you want an upfront payment. I need to test for a few times first. Mostly only pips matters. I look much the risk safety, money management, risk reward, and overall
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
SMC Martingale Pro is an advanced MetaTrader 5 Expert Advisor designed for high-volatility markets like XAU/USD. It combines institutional Smart Money Concepts with a dynamic risk recovery system. Key Features Dual FVG Engine: Automatically identifies and renders both bullish and bearish Fair Value Gaps in real time. Multi-Timeframe Flexibility: Operates independently of the active chart timeframe to target
I am looking for an experienced Sierra Chart ACSIL (C++) developer to create a custom indicator that measures the average Prior Day High-Low range over a configurable number of trading days (default: 7 days) using a 23-hour trading session

Project information

Budget
100+ USD
Deadline
from 1 to 3 day(s)