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

MQL5 Esperti

Specifiche

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


Con risposta

1
Sviluppatore 1
Valutazioni
(509)
Progetti
977
74%
Arbitraggio
27
19% / 67%
In ritardo
101
10%
Gratuito
Pubblicati: 1 articolo, 6 codici
2
Sviluppatore 2
Valutazioni
(8)
Progetti
11
0%
Arbitraggio
7
29% / 71%
In ritardo
2
18%
Gratuito
3
Sviluppatore 3
Valutazioni
(75)
Progetti
80
6%
Arbitraggio
46
11% / 54%
In ritardo
7
9%
In elaborazione
4
Sviluppatore 4
Valutazioni
(50)
Progetti
64
20%
Arbitraggio
11
27% / 55%
In ritardo
5
8%
Gratuito
5
Sviluppatore 5
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
(361)
Progetti
644
26%
Arbitraggio
92
72% / 14%
In ritardo
12
2%
In elaborazione
Pubblicati: 1 codice
7
Sviluppatore 7
Valutazioni
(16)
Progetti
20
10%
Arbitraggio
8
38% / 38%
In ritardo
3
15%
In elaborazione
8
Sviluppatore 8
Valutazioni
(16)
Progetti
35
23%
Arbitraggio
4
0% / 50%
In ritardo
2
6%
In elaborazione
9
Sviluppatore 9
Valutazioni
(13)
Progetti
15
27%
Arbitraggio
3
67% / 0%
In ritardo
0
Occupato
10
Sviluppatore 10
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
11
Sviluppatore 11
Valutazioni
Progetti
1
0%
Arbitraggio
1
0% / 0%
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(2)
Progetti
3
0%
Arbitraggio
0
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
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
BUY ALERT 1. Supertrend turns Bullish 2. On this candle , or during the last time Supertrend was Bearish, price was < or = MA1 3. On this candle , or during the last time Supertrend was Bearish , BBStops is Bearish 4. STEP MA1 and STEP MA 2 are both Bullish SELL ALERT 1. Supertrend turns Bearish 2. On this candle , or during the last time Supertrend was Bullish, price was
Rsi divergence 30+ USD
You need to create an EA that executes buy and sell based on the signals of an rsi divergence indicator in trading view. The indicator is not in MT5 and must be added separately. pine script availabel
I WANT A TRADING ROBOT WITH GOLD STRATEGY THAT COULD TAKE ME TO 1MILLION$ TODAY,PLEASE KINDLY GENERATE THE BOT, DEBUGG COMPILE AND THEN GIVE ME WHEN EVER YOU ARE READY, ILL BE WAITING THANK YOU

Informazioni sul progetto

Budget
35+ USD
Scadenze
a 3 giorno(i)