MT5 EA compiles but does not open trades – SMC logic debug required

MQL5 Experts

Specification

Hello,


I have an MT5 Expert Advisor that compiles successfully with no errors, but it does not open any trades in live market or Strategy Tester.


The EA logic is already implemented and quite detailed. I need an experienced MQL5 developer to debug, validate conditions, and fix execution issues, not to redesign the strategy.



🔹 Strategy Summary



  • Timeframe: M30
  • Instruments: NAS100 / XAUUSD
  • Core Logic:
    • Market structure using Swing High / Swing Low
    • BOS / CHOCH detection
    • Displacement leg
    • 30–50% retracement entry
    • Fair Value Gap (2 & 3 candle)
    • Liquidity logic (equal highs/lows, buy-side & sell-side liquidity taken)
    • Untested BOS/CHOCH retest zones
  • Risk management:
    • 4% risk per trade
    • SL beyond BOS candle
    • TP at nearest swing high/low
    • Spread filter & max trades per direction




🔹 Current Problem



  • EA loads successfully
  • No trades are triggered
  • Very likely causes:
    • Filters too strict (liquidity + untested zones + FVG overlap)
    • Logic order / state issues (g_CurrentLeg.active, trend reset)
    • Conditions not aligning on the same candle
    • Execution / symbol / tick value handling on indices




🔹 What I Need From You

  1. Add debug Print() logs for each major condition:
    • BOS / CHOCH detection
    • Liquidity taken
    • Untested structure zone found
    • FVG overlap
    • Entry blocked reason
  2. Identify which condition prevents entries
  3. Fix logic so the EA:
    • Takes valid trades
    • Does not overtrade
    • Respects the existing SMC rules
  4. (Optional but preferred)
    • Add a debug mode ON/OFF input
    • Mark BOS, FVG, Liquidity, and entry on chart

🔹 Deliverables

  • Working .mq5 source code
  • Explanation of what was blocking trades
  • Clean, commented fixes (no over-engineering)

I will provide the full .mq5 file and can run Strategy Tester screenshots if needed.

Please let me know:

  • Your experience with SMC / market structure EAs
  • Estimated time to debug
  • Fixed price for this task

Kind regards,

Clearance Nkosana Mabaso


Responded

1
Developer 1
Rating
(509)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
101
10%
Free
Published: 1 article, 6 codes
2
Developer 2
Rating
(8)
Projects
11
0%
Arbitration
7
29% / 71%
Overdue
2
18%
Free
3
Developer 3
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
4
Developer 4
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
5
Developer 5
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(361)
Projects
644
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
7
Developer 7
Rating
(16)
Projects
20
10%
Arbitration
8
38% / 38%
Overdue
3
15%
Working
8
Developer 8
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
9
Developer 9
Rating
(13)
Projects
15
27%
Arbitration
3
67% / 0%
Overdue
0
Busy
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(2)
Projects
3
0%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone
I will pay 3000+ USD (negotiable) for an EA for existing MT5 that generates a minimum of 15-20% or higher a month consistently (provide source code after final deal) Looking for a highly profitable EA Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test it
EA fx 30+ USD
Hello, I need an already developed EA similar to the one trading XAUUSD, with consistent entries and good risk management. Before we proceed, I would like to verify its performance. Please provide a live or demo account login along with the investor (read-only) password so I can monitor the trading results. I am looking for stable performance, controlled drawdown, and consistent profit on gold (XAUUSD). Once I
The strategy records the highest and lowest prices within a specified duration (default 15 minutes) after the New York market opens, forming the opening range. Post-Formation Breakout: When the price breaks above or below the opening range after its formation, it may indicate the direction of the day’s price movement. Trend Confirmation: The strategy uses two EMAs (default 20-period and 50-period) as trend filters to
Tengo una estrategia basada en divergencia para el oro sobre todo en tf m1 Basado en divergencia con stoch .. confirmando la entrada con ciertos parameteos de entrada Es mejor conversarlo para dar mejor los detalles Cuando entrar, porque o todas las divergencias se debe tomar para entrar en compras o ventas He adjuntado un ejemplo La confrmacion más exacta es el cruce de esos parámetros de stoch edebajo de level de

Project information

Budget
35+ USD
Deadline
to 3 day(s)