MQL5 EA Fails to Retrieve Data from iCustom Indicator (Buffers Return Only Zeros)

Specification

I am looking for an expert MQL5 programmer with experience in the following issue:

Problem Description:

I have an MQL5 Expert Advisor (EA) that uses iCustom() to call a custom Order Block indicator. The indicator works correctly when applied manually to a chart, storing and displaying valid buffer values. However, when the EA runs and calls CopyBuffer() , it only retrieves zeros instead of the expected values.

Key Observations:

✅ iCustom() successfully creates the indicator instance (confirmed by logs).
✅ The indicator prints correct buffer values when running manually.
❌ The indicator’s OnCalculate() never runs inside the EA ( MQL_PROGRAM_TYPE is always PROGRAM_INDICATOR ).
❌ The EA's instance of the indicator does not seem to update or execute properly.

What Could Be Wrong?

  • The EA might not be correctly launching the indicator instance.
  • CopyBuffer() might be failing silently.

What I Need Help With:

  • How to ensure the indicator actually runs inside the EA ( PROGRAM_EXPERT ).
  • How to make CopyBuffer() retrieve correct values when the EA calls iCustom() .
  • Debugging why the indicator buffers return only zeros when used via EA.

Would appreciate any insights or debugging suggestions! 

Responded

1
Developer 1
Rating
(25)
Projects
33
24%
Arbitration
3
33% / 33%
Overdue
4
12%
Free
2
Developer 2
Rating
(102)
Projects
154
20%
Arbitration
23
9% / 74%
Overdue
14
9%
Busy
3
Developer 3
Rating
(210)
Projects
359
32%
Arbitration
34
41% / 29%
Overdue
107
30%
Working
Published: 1 code
4
Developer 4
Rating
(264)
Projects
593
35%
Arbitration
64
20% / 58%
Overdue
147
25%
Free
Published: 1 article, 22 codes
5
Developer 5
Rating
(5)
Projects
5
0%
Arbitration
5
0% / 40%
Overdue
0
Free
6
Developer 6
Rating
(33)
Projects
35
20%
Arbitration
5
40% / 40%
Overdue
0
Free
Published: 1 code
7
Developer 7
Rating
(6)
Projects
6
17%
Arbitration
1
0% / 0%
Overdue
0
Working
8
Developer 8
Rating
(15)
Projects
34
24%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
9
Developer 9
Rating
(844)
Projects
1445
72%
Arbitration
119
29% / 47%
Overdue
355
25%
Working
Published: 3 articles
10
Developer 10
Rating
(625)
Projects
842
48%
Arbitration
27
37% / 15%
Overdue
63
7%
Free
11
Developer 11
Rating
(52)
Projects
89
25%
Arbitration
8
75% / 13%
Overdue
44
49%
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(14)
Projects
14
14%
Arbitration
8
0% / 88%
Overdue
2
14%
Loaded
14
Developer 14
Rating
(511)
Projects
548
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
15
Developer 15
Rating
(278)
Projects
340
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
16
Developer 16
Rating
(2623)
Projects
3329
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
17
Developer 17
Rating
(539)
Projects
618
33%
Arbitration
35
37% / 49%
Overdue
10
2%
Busy
18
Developer 18
Rating
(270)
Projects
552
49%
Arbitration
58
40% / 36%
Overdue
228
41%
Working
19
Developer 19
Rating
(9)
Projects
11
18%
Arbitration
4
0% / 100%
Overdue
4
36%
Free
20
Developer 20
Rating
(5)
Projects
4
0%
Arbitration
2
50% / 50%
Overdue
2
50%
Free
21
Developer 21
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
22
Developer 22
Rating
(45)
Projects
91
13%
Arbitration
34
26% / 59%
Overdue
37
41%
Free
Similar orders
We're looking for a highly professional MQL5 developer to create FX Apex, an advanced scalping EA optimized for small accounts ($50+), 1:30 leverage, IC Markets broker, and ready for demo/live trading. Key Features:_ Scalps XAU/USD & major pairs (M1-M15), option to add more Adaptive TP/SL based on volatility, trend, ATR, momentum Dynamic trailing, breakeven, partial close functionality Configurable risk per trade
I have an existing MetaTrader 5 EA that requires significant improvements to its **risk management logic and trade execution** behavior. Currently, the EA executes trades without applying proper stop loss, take profit, or trailing mechanisms, which results in high drawdown and potential loss of capital. The goal is to **optimize the EA for low risk and high return**, starting with small capital (e.g., \$10, \$50
I need a MetaTrader 5 Expert Advisor based on SMA 5/9 crossover: - Only one position at a time. - Close & reverse on opposite SMA cross. - No trading on very large breakout candles. - Stop Loss mandatory, 20-50 pips. - Manual lot size and manual timeframe. - EA must be clean, optimized, stable for Gold and Forex. Attached file contains full EA specification for development
💰 BUDGET: $200-$2,800 XAUUSD EA (Negotiable) Institutional XAUUSD EA with 20+ Systems | Sharpe 4.2+ | Quant Firm Standards DESCRIPTION I need an experienced MQL5 developer to build a professional institutional-grade EA with 20+ integrated trading systems for MetaTrader 5. CORE REQUIREMENTS: Architecture: • 20+ independent trading systems (trend, mean reversion, volatility, breakout) • ON/OFF toggle for each system
Hi , I am finding scalping Ea for Mt5 which can work on all pairs and have back tested results at least of 1 year and is currently running in Mt5 so i can login and see how it is performing who ever have message me
Hi, im not looking into developing a new EA. I am looking into purchasing an existing EA that can deliver such results like: mq5 source, 4 year backtest 2021‑2025 report, equity curve, trade list, strategy description, and 1‑month demo access. i need a concrete prove of experience functioning existing EA working perfectly and as contained on my description, then we can't strike a deal. Thank you
Buen día. Busco un desarrollador para agregar sistema de Martingala a un Bot de MT4, sin poseer el código fuente, solo el archivo EX4. Mas detalles en mensaje privado, agradezco la atención prestada
Olá, preciso de um programador para montar um indicador com base na sobrevenda do estocastico, volume macd, para uma estrategia de reversão e falso rompimento com regioes de OB validos minimas e maximas de H1, H4, D1 e canais para confluencias, quero que seja didatico visualmente e com cores, sons de alertas e algum sinal de call ou put como setas indicando reversões e falsos rompimentos e continuidade
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
want a highly profitable EA; price is not an issue, as long as you can prove it and send me a demo for me to test. You need to prove yourself first. The EA needs a year of stable backtesting

Project information

Budget
50 - 200 USD