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)
项目
34
26%
仲裁
4
50% / 25%
逾期
4
12%
空闲
2
开发者 2
等级
(111)
项目
184
25%
仲裁
25
16% / 76%
逾期
16
9%
空闲
3
开发者 3
等级
(217)
项目
369
33%
仲裁
34
41% / 29%
逾期
108
29%
空闲
发布者: 1 代码
4
开发者 4
等级
(268)
项目
603
34%
仲裁
65
22% / 57%
逾期
146
24%
工作中
发布者: 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%
仲裁
0
逾期
0
工作中
8
开发者 8
等级
(16)
项目
35
23%
仲裁
4
0% / 50%
逾期
2
6%
工作中
9
开发者 9
等级
(852)
项目
1469
72%
仲裁
122
29% / 48%
逾期
360
25%
工作中
发布者: 3 文章
10
开发者 10
等级
(648)
项目
876
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
等级
(515)
项目
554
53%
仲裁
13
69% / 15%
逾期
3
1%
空闲
15
开发者 15
等级
(279)
项目
341
37%
仲裁
6
50% / 17%
逾期
7
2%
空闲
发布者: 5 代码
16
开发者 16
等级
(2678)
项目
3422
68%
仲裁
78
47% / 14%
逾期
343
10%
工作中
发布者: 1 代码
17
开发者 17
等级
(634)
项目
741
34%
仲裁
49
53% / 39%
逾期
14
2%
工作中
18
开发者 18
等级
(271)
项目
553
50%
仲裁
57
40% / 37%
逾期
227
41%
工作中
19
开发者 19
等级
(9)
项目
11
18%
仲裁
4
0% / 100%
逾期
4
36%
空闲
20
开发者 20
等级
(7)
项目
6
0%
仲裁
4
25% / 75%
逾期
2
33%
空闲
21
开发者 21
等级
(574)
项目
945
47%
仲裁
309
58% / 27%
逾期
125
13%
空闲
22
开发者 22
等级
(45)
项目
91
13%
仲裁
34
26% / 59%
逾期
37
41%
空闲
相似订单
PROJECT: Automatic Gold and Forex Trading Robot for MetaTrader 5 (MQL5) I want a fully automated Expert Advisor (EA) for MetaTrader 5 that can analyze the market and automatically open, manage and close trades on Gold and selected Forex currency pairs. 1. TRADING INSTRUMENTS - Gold: XAUUSD - Forex: EURUSD, GBPUSD and USDJPY, subject to broker availability. - Allow the user to enable or disable each trading symbol. -
Hello, I want to create a custom Expert Advisor (EA) for MetaTrader 5 based on 3 main confirmations: Market Structure & Price Action: Identify high time-frame trend direction (HL/LH). Chart Pattern: Detect classic continuous/reversal patterns (e.g. Cup and Handle, Double Bottom/Top) on trading timeframe. Volume Profile (PoC): Confirm entry when price breaks/retests the Point of Control (PoC) level. Risk Management &
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
We’re looking for an investment partner to help fund AegisGoldAIPro , an algorithmic trading platform being developed for MetaTrader 5, initially focused on gold. We’re building a modular system that combines market-structure analysis with planned AI-assisted decision support, risk controls, and automated execution. What we are building is not just a basic trading robots that depend on only one indicator or strategy
Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: ​ Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. ​ Core Trading Logic: ​Execute automatic Buy and Sell trades using high-probability entry signals. ​Target a strict 90% theoretical win-rate structure through
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
The purpose of this order is ONLY to test and implement my H1 POI (Point of Interest) identification logic correctly. I am not requesting the complete EA at this stage. I will provide the exact rules for identifying the H1 POI after selecting the developer. The developer must convert those rules into clear, deterministic MQL5 logic. Requirements: Analyze H1 candles according to the rules I provide. Identify and mark

项目信息

预算
50 - 200 USD