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
34
26%
Arbitragem
4
50% / 25%
Expirado
4
12%
Livre
2
Desenvolvedor 2
Classificação
(108)
Projetos
178
25%
Arbitragem
24
17% / 75%
Expirado
16
9%
Trabalhando
3
Desenvolvedor 3
Classificação
(217)
Projetos
369
33%
Arbitragem
34
41% / 29%
Expirado
108
29%
Livre
Publicou: 1 código
4
Desenvolvedor 4
Classificação
(268)
Projetos
602
34%
Arbitragem
64
20% / 58%
Expirado
147
24%
Trabalhando
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
(16)
Projetos
35
23%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
9
Desenvolvedor 9
Classificação
(851)
Projetos
1461
72%
Arbitragem
122
29% / 48%
Expirado
356
24%
Trabalhando
Publicou: 3 artigos
10
Desenvolvedor 10
Classificação
(644)
Projetos
871
48%
Arbitragem
29
38% / 17%
Expirado
63
7%
Trabalhando
11
Desenvolvedor 11
Classificação
(55)
Projetos
92
24%
Arbitragem
8
75% / 13%
Expirado
44
48%
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
(513)
Projetos
552
53%
Arbitragem
13
69% / 15%
Expirado
3
1%
Livre
15
Desenvolvedor 15
Classificação
(279)
Projetos
341
37%
Arbitragem
6
50% / 17%
Expirado
7
2%
Livre
Publicou: 5 códigos
16
Desenvolvedor 16
Classificação
(2672)
Projetos
3407
68%
Arbitragem
77
48% / 14%
Expirado
342
10%
Livre
Publicou: 1 código
17
Desenvolvedor 17
Classificação
(611)
Projetos
711
33%
Arbitragem
45
49% / 42%
Expirado
14
2%
Trabalhando
18
Desenvolvedor 18
Classificação
(271)
Projetos
553
50%
Arbitragem
57
40% / 37%
Expirado
227
41%
Trabalhando
19
Desenvolvedor 19
Classificação
(9)
Projetos
11
18%
Arbitragem
4
0% / 100%
Expirado
4
36%
Livre
20
Desenvolvedor 20
Classificação
(7)
Projetos
6
0%
Arbitragem
4
25% / 75%
Expirado
2
33%
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
Bonjour, je recherche un développeur MQL5 expérimenté pour créer un Expert Advisor pour MetaTrader 5 basé sur une stratégie de trading intégrant des principes de gestion des risques rigoureux et d'intelligence financière. Le robot doit être capable de gérer plusieurs paires de devises et d'optimiser automatiquement les entrées et sorties en fonction de conditions de marché prédéfinies."
MT4/MT5 HFT EA us30 30 - 3000 USD
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the
I'm looking for an experienced NinjaTrader 8 (C#) developer to build a fully automated futures trading strategy. Please apply only if you have proven experience developing and testing NinjaTrader strategies. Project Overview Develop a fully automated NinjaTrader 8 strategy. Designed for Apex funded and evaluation accounts. Primary instruments: NQ/MNQ Futures (with flexibility to support other futures later). Trading
Hello I need to purchase the source code of an already built profitable mt5 EA with proven track recordIf you have something similar and you are open to selling the source code please apply to this post Please note I am not looking for a dev to build the product from scratch , but need something that is already built and have at least one year worth of track record
I need an Expert Advisor for MT5 on XAUUSD 1min timeframe using SMC concepts. STRATEGY RULES: SELL: 1. Identify previous day High/Low as liquidity 2. Entry only during London-NY session: 15:00-19:00 GMT+3 or broker clock. 3. If price sweeps previous day High and closes back below it 4. Check for bearish 1min FVG below sweep candle 5. Wait for BOS - lower low 6. Entry: Sell/buy at 50% of the FVG 7. SL: 10 pips above
Code An Loss Rate 90-100% MT5 EA , that can blow a 100 USD account a day ,with fixed TP of 3000 points and SL of 3000 For better Rate Calculations get an strategy that can lead to so
8 cap prop firm passing 30 - 3000 USD
I am looking for an experienced MQL4/MQL5 HFT developer to build or optimize a High-Frequency Trading (HFT) Expert Advisor that can successfully pass proprietary trading firm challenges and perform consistently under live trading conditions with brokers such as 8cap or BlackBull Markets . The developer should have proven experience with HFT execution, ultra-low-latency trading, broker execution, slippage, spreads
I need a professional MT5 Expert Advisor (MQL5) for XAU/USD (Gold) only. Requirements: - Symbol: XAU/USD only - Timeframe: H1 trend, M5 entry - Smart Money Concept (SMC) - Liquidity Sweep - Break of Structure (BOS) - Order Block Retest - Confirmation Candle (Engulfing or Pin Bar) - ATR-based Stop Loss - Risk:Reward = 1:3 (adjustable) - Auto Lot (1% risk) - Break Even - Trailing Stop - Maximum 2 trades per day - One
Hello, I am looking for an existing, fully backtestable MT5 Expert Advisor or EA portfolio designed specifically for passing an FTMO-style prop-firm evaluation. I am not looking for unrealistic profit claims or a visually perfect backtest. My priority is a statistically defensible probability of passing the challenge while respecting all risk limits. Primary objective The system should be designed for the current
I have a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5 designed primarily for US30 (Dow Jones Index) . The EA performs consistently and profitably on demo accounts, but when I run it on an IC Markets Raw or Standard live account, it starts generating losses under what appear to be the same trading conditions. At this time, I cannot provide the source code (.mq4/.mq5). I can only provide the

Informações sobre o projeto

Orçamento
50 - 200 USD