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

Şartname

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! 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(25)
Projeler
33
24%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
4
12%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(104)
Projeler
170
24%
Arabuluculuk
23
9% / 78%
Süresi dolmuş
16
9%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(216)
Projeler
368
33%
Arabuluculuk
34
41% / 29%
Süresi dolmuş
108
29%
Serbest
Yayınlandı: 1 kod
4
Geliştirici 4
Derecelendirme
(266)
Projeler
598
35%
Arabuluculuk
64
20% / 58%
Süresi dolmuş
147
25%
Serbest
Yayınlandı: 1 makale, 22 kod
5
Geliştirici 5
Derecelendirme
(5)
Projeler
5
0%
Arabuluculuk
5
0% / 40%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(33)
Projeler
35
20%
Arabuluculuk
5
40% / 40%
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
7
Geliştirici 7
Derecelendirme
(6)
Projeler
6
17%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Çalışıyor
8
Geliştirici 8
Derecelendirme
(16)
Projeler
35
23%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(850)
Projeler
1456
72%
Arabuluculuk
122
29% / 48%
Süresi dolmuş
356
24%
Çalışıyor
Yayınlandı: 3 makale
10
Geliştirici 10
Derecelendirme
(637)
Projeler
858
48%
Arabuluculuk
29
38% / 17%
Süresi dolmuş
63
7%
Serbest
11
Geliştirici 11
Derecelendirme
(55)
Projeler
92
24%
Arabuluculuk
8
75% / 13%
Süresi dolmuş
44
48%
Serbest
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
(14)
Projeler
14
14%
Arabuluculuk
8
0% / 88%
Süresi dolmuş
2
14%
Yüklendi
14
Geliştirici 14
Derecelendirme
(511)
Projeler
549
53%
Arabuluculuk
13
69% / 15%
Süresi dolmuş
3
1%
Serbest
15
Geliştirici 15
Derecelendirme
(279)
Projeler
341
37%
Arabuluculuk
6
50% / 17%
Süresi dolmuş
7
2%
Serbest
Yayınlandı: 5 kod
16
Geliştirici 16
Derecelendirme
(2659)
Projeler
3377
68%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
342
10%
Çalışıyor
Yayınlandı: 1 kod
17
Geliştirici 17
Derecelendirme
(567)
Projeler
656
32%
Arabuluculuk
41
41% / 46%
Süresi dolmuş
11
2%
Meşgul
18
Geliştirici 18
Derecelendirme
(271)
Projeler
553
50%
Arabuluculuk
57
40% / 37%
Süresi dolmuş
227
41%
Çalışıyor
19
Geliştirici 19
Derecelendirme
(9)
Projeler
11
18%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
4
36%
Serbest
20
Geliştirici 20
Derecelendirme
(6)
Projeler
5
0%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
2
40%
Serbest
21
Geliştirici 21
Derecelendirme
(574)
Projeler
945
47%
Arabuluculuk
309
58% / 27%
Süresi dolmuş
125
13%
Serbest
22
Geliştirici 22
Derecelendirme
(45)
Projeler
91
13%
Arabuluculuk
34
26% / 59%
Süresi dolmuş
37
41%
Serbest
Benzer siparişler
.. 30 - 200 USD
Ebrahim Ajarousha uggjhh jhghjh jhb hbhh hbhkoo ddddf drrd ffff tff ftv. Tf. Rf. Ff. F. Ff v. Hb b h h h c c n j j e. K dk. K kx. Kd. Kc k. Xk. Dk. K xk. Nx. Nx. Xj. Xnx xk. X xk d c g t. X f. C x x c
I have a fully developed and ready Expert Advisor for MT5. I am NOT looking for coding work. I am looking for an experienced MQL5 Market seller who can publish and manage my EA on the MQL5 Market on my behalf. The deal is revenue share — we split the income from sales or rentals. The EA is complete and ready to publish. If you have an established seller account on MQL5 Market with good reputation and experience
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
24/7 Pick-and-Pack Bot 30 - 200 USD
Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
24/7 Pick-and-Pack Bot 30 - 200 USD
Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
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

Proje bilgisi

Bütçe
50 - 200 USD