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

Specifiche

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! 

Con risposta

1
Sviluppatore 1
Valutazioni
(25)
Progetti
33
24%
Arbitraggio
3
33% / 33%
In ritardo
4
12%
In elaborazione
2
Sviluppatore 2
Valutazioni
(104)
Progetti
170
24%
Arbitraggio
23
9% / 78%
In ritardo
16
9%
In elaborazione
3
Sviluppatore 3
Valutazioni
(216)
Progetti
368
33%
Arbitraggio
34
41% / 29%
In ritardo
108
29%
Gratuito
Pubblicati: 1 codice
4
Sviluppatore 4
Valutazioni
(266)
Progetti
598
35%
Arbitraggio
64
20% / 58%
In ritardo
147
25%
Gratuito
Pubblicati: 1 articolo, 22 codici
5
Sviluppatore 5
Valutazioni
(5)
Progetti
5
0%
Arbitraggio
5
0% / 40%
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
(33)
Progetti
35
20%
Arbitraggio
5
40% / 40%
In ritardo
0
Gratuito
Pubblicati: 1 codice
7
Sviluppatore 7
Valutazioni
(6)
Progetti
6
17%
Arbitraggio
1
0% / 0%
In ritardo
0
In elaborazione
8
Sviluppatore 8
Valutazioni
(16)
Progetti
35
23%
Arbitraggio
4
0% / 50%
In ritardo
2
6%
In elaborazione
9
Sviluppatore 9
Valutazioni
(850)
Progetti
1456
72%
Arbitraggio
122
29% / 48%
In ritardo
356
24%
In elaborazione
Pubblicati: 3 articoli
10
Sviluppatore 10
Valutazioni
(637)
Progetti
858
48%
Arbitraggio
29
38% / 17%
In ritardo
63
7%
Gratuito
11
Sviluppatore 11
Valutazioni
(55)
Progetti
92
24%
Arbitraggio
8
75% / 13%
In ritardo
44
48%
Gratuito
12
Sviluppatore 12
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(14)
Progetti
14
14%
Arbitraggio
8
0% / 88%
In ritardo
2
14%
Caricato
14
Sviluppatore 14
Valutazioni
(511)
Progetti
549
53%
Arbitraggio
13
69% / 15%
In ritardo
3
1%
Gratuito
15
Sviluppatore 15
Valutazioni
(279)
Progetti
341
37%
Arbitraggio
6
50% / 17%
In ritardo
7
2%
Gratuito
Pubblicati: 5 codici
16
Sviluppatore 16
Valutazioni
(2659)
Progetti
3377
68%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
In elaborazione
Pubblicati: 1 codice
17
Sviluppatore 17
Valutazioni
(567)
Progetti
656
32%
Arbitraggio
41
41% / 46%
In ritardo
11
2%
Occupato
18
Sviluppatore 18
Valutazioni
(271)
Progetti
553
50%
Arbitraggio
57
40% / 37%
In ritardo
227
41%
In elaborazione
19
Sviluppatore 19
Valutazioni
(9)
Progetti
11
18%
Arbitraggio
4
0% / 100%
In ritardo
4
36%
Gratuito
20
Sviluppatore 20
Valutazioni
(6)
Progetti
5
0%
Arbitraggio
3
33% / 67%
In ritardo
2
40%
Gratuito
21
Sviluppatore 21
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
309
58% / 27%
In ritardo
125
13%
Gratuito
22
Sviluppatore 22
Valutazioni
(45)
Progetti
91
13%
Arbitraggio
34
26% / 59%
In ritardo
37
41%
Gratuito
Ordini simili
I need a mt5 expert advisor as shown in the youtube video. The expert advisor need to work with three digit broker i.e. exness also with two digit broker i.e. vantage. Please specify the settings for both type of brokers. I need same result as shown in the youtube video. Video link is https://www.youtube.com/watch?v=ndVQD7iS1-A
You can control via Telegram: /start - enable bot, begin trading, /stop - end trading, disable bot /status - trade status Bot requirements: • Automated trading throughout the day until 00:00 UTC (Moscow time) (I do not want to trade or turn the bot on 100 times a day). • Auto shutdown of the bot in Telegram at 00:00 UTC (Moscow time) and manual restart when convenient. • Market analysis 24/5 using 20 EMA, RSI, and
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Ninjatrader bot 30+ USD
I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Hello Developers I have a Project to get done! i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5
Pro firm setup 30+ USD
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000

Informazioni sul progetto

Budget
50 - 200 USD