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

Termos de Referência

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! 

Respondido

1
Desenvolvedor 1
Classificação
(25)
Projetos
33
24%
Arbitragem
3
33% / 33%
Expirado
4
12%
Livre
2
Desenvolvedor 2
Classificação
(102)
Projetos
154
20%
Arbitragem
23
9% / 74%
Expirado
14
9%
Ocupado
3
Desenvolvedor 3
Classificação
(210)
Projetos
359
32%
Arbitragem
34
41% / 29%
Expirado
107
30%
Trabalhando
Publicou: 1 código
4
Desenvolvedor 4
Classificação
(264)
Projetos
593
35%
Arbitragem
64
20% / 58%
Expirado
147
25%
Livre
Publicou: 1 artigo, 22 códigos
5
Desenvolvedor 5
Classificação
(5)
Projetos
5
0%
Arbitragem
5
0% / 40%
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(33)
Projetos
35
20%
Arbitragem
5
40% / 40%
Expirado
0
Livre
Publicou: 1 código
7
Desenvolvedor 7
Classificação
(6)
Projetos
6
17%
Arbitragem
1
0% / 0%
Expirado
0
Trabalhando
8
Desenvolvedor 8
Classificação
(15)
Projetos
34
24%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
9
Desenvolvedor 9
Classificação
(844)
Projetos
1445
72%
Arbitragem
119
29% / 47%
Expirado
355
25%
Trabalhando
Publicou: 3 artigos
10
Desenvolvedor 10
Classificação
(625)
Projetos
842
48%
Arbitragem
27
37% / 15%
Expirado
63
7%
Livre
11
Desenvolvedor 11
Classificação
(52)
Projetos
89
25%
Arbitragem
8
75% / 13%
Expirado
44
49%
Livre
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(14)
Projetos
14
14%
Arbitragem
8
0% / 88%
Expirado
2
14%
Carregado
14
Desenvolvedor 14
Classificação
(511)
Projetos
548
53%
Arbitragem
13
69% / 15%
Expirado
3
1%
Livre
15
Desenvolvedor 15
Classificação
(278)
Projetos
340
37%
Arbitragem
6
50% / 17%
Expirado
7
2%
Livre
Publicou: 5 códigos
16
Desenvolvedor 16
Classificação
(2623)
Projetos
3329
67%
Arbitragem
77
48% / 14%
Expirado
342
10%
Livre
Publicou: 1 código
17
Desenvolvedor 17
Classificação
(539)
Projetos
618
33%
Arbitragem
35
37% / 49%
Expirado
10
2%
Ocupado
18
Desenvolvedor 18
Classificação
(270)
Projetos
552
49%
Arbitragem
58
40% / 36%
Expirado
228
41%
Trabalhando
19
Desenvolvedor 19
Classificação
(9)
Projetos
11
18%
Arbitragem
4
0% / 100%
Expirado
4
36%
Livre
20
Desenvolvedor 20
Classificação
(5)
Projetos
4
0%
Arbitragem
2
50% / 50%
Expirado
2
50%
Livre
21
Desenvolvedor 21
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre
22
Desenvolvedor 22
Classificação
(45)
Projetos
91
13%
Arbitragem
34
26% / 59%
Expirado
37
41%
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
50 - 200 USD