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
등급
(102)
프로젝트
154
20%
중재
23
9% / 74%
기한 초과
14
9%
바쁜
3
개발자 3
등급
(210)
프로젝트
359
32%
중재
34
41% / 29%
기한 초과
107
30%
작업중
게재됨: 1 코드
4
개발자 4
등급
(264)
프로젝트
593
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
등급
(15)
프로젝트
34
24%
중재
4
0% / 50%
기한 초과
2
6%
작업중
9
개발자 9
등급
(844)
프로젝트
1445
72%
중재
119
29% / 47%
기한 초과
355
25%
작업중
게재됨: 3 기고글
10
개발자 10
등급
(625)
프로젝트
842
48%
중재
27
37% / 15%
기한 초과
63
7%
무료
11
개발자 11
등급
(52)
프로젝트
89
25%
중재
8
75% / 13%
기한 초과
44
49%
무료
12
개발자 12
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
13
개발자 13
등급
(14)
프로젝트
14
14%
중재
8
0% / 88%
기한 초과
2
14%
로드됨
14
개발자 14
등급
(511)
프로젝트
548
53%
중재
13
69% / 15%
기한 초과
3
1%
무료
15
개발자 15
등급
(278)
프로젝트
340
37%
중재
6
50% / 17%
기한 초과
7
2%
무료
게재됨: 5 코드
16
개발자 16
등급
(2623)
프로젝트
3329
67%
중재
77
48% / 14%
기한 초과
342
10%
무료
게재됨: 1 코드
17
개발자 17
등급
(539)
프로젝트
618
33%
중재
35
37% / 49%
기한 초과
10
2%
바쁜
18
개발자 18
등급
(270)
프로젝트
552
49%
중재
58
40% / 36%
기한 초과
228
41%
작업중
19
개발자 19
등급
(9)
프로젝트
11
18%
중재
4
0% / 100%
기한 초과
4
36%
무료
20
개발자 20
등급
(5)
프로젝트
4
0%
중재
2
50% / 50%
기한 초과
2
50%
무료
21
개발자 21
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
22
개발자 22
등급
(45)
프로젝트
91
13%
중재
34
26% / 59%
기한 초과
37
41%
무료
비슷한 주문
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

프로젝트 정보

예산
50 - 200 USD