Error using iCustom() in an EA mql4

 
Hi, there,
I hope you are all well.
I'm writing an EA in mql4. The goal is to use iCustom() to get the values of a custom indicator.

Here is what I wrote:

double b=iCustom(Symbol(),0,"SMC Indicator",2000,"Smart Money Concepts",1,0,false,"Real Time Internal Structure",false,0,16777215,0,-1,true,"Real Time Swing Structure",true,0,16777215,0,16777215,false,50,false,"Order Blocks",false,5,true,5,0,16161883,65535,65280,255,"EQH/EQL",false,3,0.1,"Fair Value Gaps",false,true,0,6881024,524543,1,"Highs & Lows MTF",false,0,15947553,false,0,15947553,false,0,15947553,"Premium & Discount Zones",false,4536050,12498354,8493320,"",i,j);

When running the EA I get this error:

2023.12.11 21:21:52.691 SmartMoneyConceptsLUX_fix2 EURUSDm,M1: TextCreate: failed to create c_text! Error code = 4206

2023.12.11 21:21:52.691 SmartMoneyConceptsLUX_fix2 EURUSDm,M1: TrendCreate: failed to create trend line! Error code = 4206

Error code 4206 means that no sub-window has been specified for the indicator to draw. Hence the error. But I think I used the iCostum function correctly, according to the documentation. And I've set the indicator parameters correctly.

I'd like you to help me solve this error.

Please find attached the indicator

Executable file removed by moderator. Only attach source files in the forum, not executables.

Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
Object Types - Objects Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
Fernando Carreiro #:
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
ok, thanks
 

Morel LALEYE:

2023.12.11 21:21:52.691 SmartMoneyConceptsLUX_fix2 EURUSDm,M1: TextCreate: failed to create c_text! Error code = 4206

2023.12.11 21:21:52.691 SmartMoneyConceptsLUX_fix2 EURUSDm,M1: TrendCreate: failed to create trend line! Error code = 4206

  1. Your posted code has nothing to do with your errors.
  2. Without your indicator code, or a link to it, we can't even verify your call.