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

명시

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! 

응답함

1
개발자 1
등급
(25)
프로젝트
33
24%
중재
3
33% / 33%
기한 초과
4
12%
작업중
2
개발자 2
등급
(104)
프로젝트
170
24%
중재
23
9% / 78%
기한 초과
16
9%
작업중
3
개발자 3
등급
(216)
프로젝트
368
33%
중재
34
41% / 29%
기한 초과
108
29%
무료
게재됨: 1 코드
4
개발자 4
등급
(266)
프로젝트
598
35%
중재
64
20% / 58%
기한 초과
147
25%
무료
게재됨: 1 기고글, 22 코드
5
개발자 5
등급
(5)
프로젝트
5
0%
중재
5
0% / 40%
기한 초과
0
무료
6
개발자 6
등급
(33)
프로젝트
35
20%
중재
5
40% / 40%
기한 초과
0
무료
게재됨: 1 코드
7
개발자 7
등급
(6)
프로젝트
6
17%
중재
1
0% / 0%
기한 초과
0
작업중
8
개발자 8
등급
(16)
프로젝트
35
23%
중재
4
0% / 50%
기한 초과
2
6%
작업중
9
개발자 9
등급
(850)
프로젝트
1456
72%
중재
122
29% / 48%
기한 초과
356
24%
작업중
게재됨: 3 기고글
10
개발자 10
등급
(637)
프로젝트
858
48%
중재
29
38% / 17%
기한 초과
63
7%
무료
11
개발자 11
등급
(55)
프로젝트
92
24%
중재
8
75% / 13%
기한 초과
44
48%
무료
12
개발자 12
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
13
개발자 13
등급
(14)
프로젝트
14
14%
중재
8
0% / 88%
기한 초과
2
14%
로드됨
14
개발자 14
등급
(511)
프로젝트
549
53%
중재
13
69% / 15%
기한 초과
3
1%
무료
15
개발자 15
등급
(279)
프로젝트
341
37%
중재
6
50% / 17%
기한 초과
7
2%
무료
게재됨: 5 코드
16
개발자 16
등급
(2659)
프로젝트
3377
68%
중재
77
48% / 14%
기한 초과
342
10%
작업중
게재됨: 1 코드
17
개발자 17
등급
(567)
프로젝트
656
32%
중재
41
41% / 46%
기한 초과
11
2%
바쁜
18
개발자 18
등급
(271)
프로젝트
553
50%
중재
57
40% / 37%
기한 초과
227
41%
작업중
19
개발자 19
등급
(9)
프로젝트
11
18%
중재
4
0% / 100%
기한 초과
4
36%
무료
20
개발자 20
등급
(6)
프로젝트
5
0%
중재
3
33% / 67%
기한 초과
2
40%
무료
21
개발자 21
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
22
개발자 22
등급
(45)
프로젝트
91
13%
중재
34
26% / 59%
기한 초과
37
41%
무료
비슷한 주문
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

프로젝트 정보

예산
50 - 200 USD