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

Spécifications

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! 

Répondu

1
Développeur 1
Évaluation
(25)
Projets
33
24%
Arbitrage
3
33% / 33%
En retard
4
12%
Gratuit
2
Développeur 2
Évaluation
(102)
Projets
154
20%
Arbitrage
23
9% / 74%
En retard
14
9%
Occupé
3
Développeur 3
Évaluation
(210)
Projets
359
32%
Arbitrage
34
41% / 29%
En retard
107
30%
Travail
Publié : 1 code
4
Développeur 4
Évaluation
(264)
Projets
593
35%
Arbitrage
64
20% / 58%
En retard
147
25%
Gratuit
Publié : 1 article, 22 codes
5
Développeur 5
Évaluation
(5)
Projets
5
0%
Arbitrage
5
0% / 40%
En retard
0
Gratuit
6
Développeur 6
Évaluation
(33)
Projets
35
20%
Arbitrage
5
40% / 40%
En retard
0
Gratuit
Publié : 1 code
7
Développeur 7
Évaluation
(6)
Projets
6
17%
Arbitrage
1
0% / 0%
En retard
0
Travail
8
Développeur 8
Évaluation
(15)
Projets
34
24%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
9
Développeur 9
Évaluation
(844)
Projets
1445
72%
Arbitrage
119
29% / 47%
En retard
355
25%
Travail
Publié : 3 articles
10
Développeur 10
Évaluation
(625)
Projets
842
48%
Arbitrage
27
37% / 15%
En retard
63
7%
Gratuit
11
Développeur 11
Évaluation
(52)
Projets
89
25%
Arbitrage
8
75% / 13%
En retard
44
49%
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(14)
Projets
14
14%
Arbitrage
8
0% / 88%
En retard
2
14%
Chargé
14
Développeur 14
Évaluation
(511)
Projets
548
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
15
Développeur 15
Évaluation
(278)
Projets
340
37%
Arbitrage
6
50% / 17%
En retard
7
2%
Gratuit
Publié : 5 codes
16
Développeur 16
Évaluation
(2623)
Projets
3329
67%
Arbitrage
77
48% / 14%
En retard
342
10%
Travail
Publié : 1 code
17
Développeur 17
Évaluation
(539)
Projets
618
33%
Arbitrage
35
37% / 49%
En retard
10
2%
Occupé
18
Développeur 18
Évaluation
(270)
Projets
552
49%
Arbitrage
58
40% / 36%
En retard
228
41%
Travail
19
Développeur 19
Évaluation
(9)
Projets
11
18%
Arbitrage
4
0% / 100%
En retard
4
36%
Gratuit
20
Développeur 20
Évaluation
(5)
Projets
4
0%
Arbitrage
2
50% / 50%
En retard
2
50%
Gratuit
21
Développeur 21
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
22
Développeur 22
Évaluation
(45)
Projets
91
13%
Arbitrage
34
26% / 59%
En retard
37
41%
Gratuit
Commandes similaires
💰 BUDGET: $200-$2,800 (Negotiable) Institutional 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 (user selectable)
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

Informations sur le projet

Budget
50 - 200 USD