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

Tarea técnica

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! 

Han respondido

1
Desarrollador 1
Evaluación
(25)
Proyectos
33
24%
Arbitraje
3
33% / 33%
Caducado
4
12%
Libre
2
Desarrollador 2
Evaluación
(102)
Proyectos
154
20%
Arbitraje
23
9% / 74%
Caducado
14
9%
Ocupado
3
Desarrollador 3
Evaluación
(210)
Proyectos
359
32%
Arbitraje
34
41% / 29%
Caducado
107
30%
Trabaja
Ha publicado: 1 ejemplo
4
Desarrollador 4
Evaluación
(264)
Proyectos
593
35%
Arbitraje
64
20% / 58%
Caducado
147
25%
Libre
Ha publicado: 1 artículo, 22 ejemplos
5
Desarrollador 5
Evaluación
(5)
Proyectos
5
0%
Arbitraje
5
0% / 40%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(33)
Proyectos
35
20%
Arbitraje
5
40% / 40%
Caducado
0
Libre
Ha publicado: 1 ejemplo
7
Desarrollador 7
Evaluación
(6)
Proyectos
6
17%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
8
Desarrollador 8
Evaluación
(15)
Proyectos
34
24%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
9
Desarrollador 9
Evaluación
(844)
Proyectos
1445
72%
Arbitraje
119
29% / 47%
Caducado
355
25%
Trabaja
Ha publicado: 3 artículos
10
Desarrollador 10
Evaluación
(625)
Proyectos
842
48%
Arbitraje
27
37% / 15%
Caducado
63
7%
Libre
11
Desarrollador 11
Evaluación
(52)
Proyectos
89
25%
Arbitraje
8
75% / 13%
Caducado
44
49%
Libre
12
Desarrollador 12
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
13
Desarrollador 13
Evaluación
(14)
Proyectos
14
14%
Arbitraje
8
0% / 88%
Caducado
2
14%
Trabajando
14
Desarrollador 14
Evaluación
(511)
Proyectos
548
53%
Arbitraje
13
69% / 15%
Caducado
3
1%
Libre
15
Desarrollador 15
Evaluación
(278)
Proyectos
340
37%
Arbitraje
6
50% / 17%
Caducado
7
2%
Libre
Ha publicado: 5 ejemplos
16
Desarrollador 16
Evaluación
(2623)
Proyectos
3329
67%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
17
Desarrollador 17
Evaluación
(539)
Proyectos
618
33%
Arbitraje
35
37% / 49%
Caducado
10
2%
Ocupado
18
Desarrollador 18
Evaluación
(270)
Proyectos
552
49%
Arbitraje
58
40% / 36%
Caducado
228
41%
Trabaja
19
Desarrollador 19
Evaluación
(9)
Proyectos
11
18%
Arbitraje
4
0% / 100%
Caducado
4
36%
Libre
20
Desarrollador 20
Evaluación
(5)
Proyectos
4
0%
Arbitraje
2
50% / 50%
Caducado
2
50%
Libre
21
Desarrollador 21
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
22
Desarrollador 22
Evaluación
(45)
Proyectos
91
13%
Arbitraje
34
26% / 59%
Caducado
37
41%
Libre
Solicitudes similares
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
I’m looking for an experienced MQL5 developer to build TWO MT5 custom indicators that detect multi-condition M30 trade setups and send Telegram alerts before trade execution . This project requires strict close-based logic , multi-indicator buffer processing , and non-repainting behavior . HIGH-LEVEL REQUIREMENTS Indicators must evaluate signals from M30 only All conditions are checked only after candle close Logic
Ea make based on smc 40 - 50 USD
I want ea based on SMC concept,, i have good knowledge in smc,, if you have good knowledge then only message me we will discuss,, bos,, imbalance then take trade ,, with fixed sl and rr
1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is
I’m looking for a highly profitable, robust EA for MT5. Targets 3% profit/month with max 1% drawdown Trades 1 signal pair 1+ year stable backtesting "Retard proof" execution Price isn't an issue. Must provide demo for testing + proof of performance Requirements: Demo version for evaluation Source code (.mq5) Serious developers only Only serious developer

Información sobre el proyecto

Presupuesto
50 - 200 USD