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

Spécifications

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! 

Répondu

1
Développeur 1
Évaluation
(25)
Projets
33
24%
Arbitrage
3
33% / 33%
En retard
4
12%
Travail
2
Développeur 2
Évaluation
(104)
Projets
170
24%
Arbitrage
23
9% / 78%
En retard
16
9%
Travail
3
Développeur 3
Évaluation
(216)
Projets
368
33%
Arbitrage
34
41% / 29%
En retard
108
29%
Gratuit
Publié : 1 code
4
Développeur 4
Évaluation
(266)
Projets
598
35%
Arbitrage
64
20% / 58%
En retard
147
25%
Gratuit
Publié : 1 article, 22 codes
5
Développeur 5
Évaluation
(5)
Projets
5
0%
Arbitrage
5
0% / 40%
En retard
0
Gratuit
6
Développeur 6
Évaluation
(33)
Projets
35
20%
Arbitrage
5
40% / 40%
En retard
0
Gratuit
Publié : 1 code
7
Développeur 7
Évaluation
(6)
Projets
6
17%
Arbitrage
1
0% / 0%
En retard
0
Travail
8
Développeur 8
Évaluation
(16)
Projets
35
23%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
9
Développeur 9
Évaluation
(850)
Projets
1456
72%
Arbitrage
122
29% / 48%
En retard
356
24%
Travail
Publié : 3 articles
10
Développeur 10
Évaluation
(637)
Projets
858
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Gratuit
11
Développeur 11
Évaluation
(55)
Projets
92
24%
Arbitrage
8
75% / 13%
En retard
44
48%
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(14)
Projets
14
14%
Arbitrage
8
0% / 88%
En retard
2
14%
Chargé
14
Développeur 14
Évaluation
(511)
Projets
549
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
15
Développeur 15
Évaluation
(279)
Projets
341
37%
Arbitrage
6
50% / 17%
En retard
7
2%
Gratuit
Publié : 5 codes
16
Développeur 16
Évaluation
(2659)
Projets
3377
68%
Arbitrage
77
48% / 14%
En retard
342
10%
Travail
Publié : 1 code
17
Développeur 17
Évaluation
(567)
Projets
656
32%
Arbitrage
41
41% / 46%
En retard
11
2%
Occupé
18
Développeur 18
Évaluation
(271)
Projets
553
50%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
19
Développeur 19
Évaluation
(9)
Projets
11
18%
Arbitrage
4
0% / 100%
En retard
4
36%
Gratuit
20
Développeur 20
Évaluation
(6)
Projets
5
0%
Arbitrage
3
33% / 67%
En retard
2
40%
Gratuit
21
Développeur 21
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
22
Développeur 22
Évaluation
(45)
Projets
91
13%
Arbitrage
34
26% / 59%
En retard
37
41%
Gratuit
Commandes similaires
.. 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

Informations sur le projet

Budget
50 - 200 USD