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

İş Gereklilikleri

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%
Serbest
2
Geliştirici 2
Derecelendirme
(102)
Projeler
154
20%
Arabuluculuk
23
9% / 74%
Süresi dolmuş
14
9%
Meşgul
3
Geliştirici 3
Derecelendirme
(210)
Projeler
359
32%
Arabuluculuk
34
41% / 29%
Süresi dolmuş
107
30%
Çalışıyor
Yayınlandı: 1 kod
4
Geliştirici 4
Derecelendirme
(264)
Projeler
593
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
(15)
Projeler
34
24%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(844)
Projeler
1445
72%
Arabuluculuk
119
29% / 47%
Süresi dolmuş
355
25%
Çalışıyor
Yayınlandı: 3 makale
10
Geliştirici 10
Derecelendirme
(625)
Projeler
842
48%
Arabuluculuk
27
37% / 15%
Süresi dolmuş
63
7%
Serbest
11
Geliştirici 11
Derecelendirme
(52)
Projeler
89
25%
Arabuluculuk
8
75% / 13%
Süresi dolmuş
44
49%
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
548
53%
Arabuluculuk
13
69% / 15%
Süresi dolmuş
3
1%
Serbest
15
Geliştirici 15
Derecelendirme
(278)
Projeler
340
37%
Arabuluculuk
6
50% / 17%
Süresi dolmuş
7
2%
Serbest
Yayınlandı: 5 kod
16
Geliştirici 16
Derecelendirme
(2623)
Projeler
3329
67%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
342
10%
Serbest
Yayınlandı: 1 kod
17
Geliştirici 17
Derecelendirme
(539)
Projeler
618
33%
Arabuluculuk
35
37% / 49%
Süresi dolmuş
10
2%
Meşgul
18
Geliştirici 18
Derecelendirme
(270)
Projeler
552
49%
Arabuluculuk
58
40% / 36%
Süresi dolmuş
228
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
(5)
Projeler
4
0%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
2
50%
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
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
Strategy Name: SHA & Fast Ema Pullback for BTCUSD Scalping Indicators Used: Smoothed Heiken Ashi Candles MT5.ex5, Fast EMA, Trend Ema, RSI Filters Used: Break Even Filter, Ema Slope Filter, Day-wise Filter, Session/ Time Filter, Loss Filter Lots: Fixed Size, 50% lots booked when Risk to Reward is 1:1 Stop Loss: in Points Trailing SL: starts once Risk to Reward 1:1 is achieved Target: 2000 Pts (max) Buy Setup Ema
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
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
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
I’m looking for a highly profitable, robust EA for MT5. Targets 3% profit/month with max 1% drawdown Trades 1 signal pair 1+ year stable backtesting "Retard proof" execution Price isn't an issue. Must provide demo for testing + proof of performance Requirements: Demo version for evaluation Source code (.mq5) Serious developers only Only serious developer
Tôi muốn EA siêu lợi nhuận, giá cả không thành vấn đề, chỉ cần bạn có thể chứng minh được, và gửi tôi bản demo để tôi kiểm tra bạn hãy chứng minh bản thân mình trước. EA cần backtest 1 năm hoạt động ổn định

Proje bilgisi

Bütçe
50 - 200 USD