IndicatorCreate can not pass more as 64 parameters!

 

However the MQL5 Reference  /  Timeseries and Indicators Access / IndicatorCreate states: You can pass no more than 256 parameters

Receive a fault message with 65 elements:

2016.12.08 13:52:46.474 Core 1 2010.01.01 00:00:00   E086400203 LokForTreFil_01 (20160201).mqh CForTreFil_01::InitCustomInd line 753 - ArraySize(parameters) =  65
2016.12.08 13:52:46.474 Core 1 2010.01.01 00:00:00   CForTreFil_01::InitCustomInd: error initializing chart object


Receive no fault message with 64 elements:

2016.12.08 14:02:33.890 Core 1 2010.01.01 00:00:00   E086400531 LokForTreFil_01 (20160201).mqh CForTreFil_01::InitCustomInd line 753 - ArraySize(parameters) =  64
2016.12.08 14:02:33.890 Core 1 program file added: Indicators\LokIndicators\LokForTreInd_01 (20160201).ex5. 551258 bytes loaded


Now I like to use all 256 elements;

Please comment how to proceed!

 
Lothar Okkerse: However the MQL5 Reference  /  Timeseries and Indicators Access / IndicatorCreate states: You can pass no more than 256 parameters

Receive a fault message with 65 elements:

2016.12.08 13:52:46.474 Core 1 2010.01.01 00:00:00   E086400203 LokForTreFil_01 (20160201).mqh CForTreFil_01::InitCustomInd line 753 - ArraySize(parameters) =  65
2016.12.08 13:52:46.474 Core 1 2010.01.01 00:00:00   CForTreFil_01::InitCustomInd: error initializing chart object

Receive no fault message with 64 elements:

2016.12.08 14:02:33.890 Core 1 2010.01.01 00:00:00   E086400531 LokForTreFil_01 (20160201).mqh CForTreFil_01::InitCustomInd line 753 - ArraySize(parameters) =  64
2016.12.08 14:02:33.890 Core 1 program file added: Indicators\LokIndicators\LokForTreInd_01 (20160201).ex5. 551258 bytes loaded

Now I like to use all 256 elements; Please comment how to proceed!

This section is for MQL4 and not MQL5 which is different. If your code is MQL4 then the limitations mentioned for MQL5 do not apply although I don't know what the exact limit is on MQL4. It probably is 64.

EDIT: By the way, MQL4 does not have the "IndicatorCreate" function! What base class are you using to create the Indicator?

EDIT2: I see now that you are using MQL5 as your log files shows a ".ex5" file. So you have indeed posted in the wrong section as this section is for MQL4 only!

EDIT3: I see the moderator has moved this thread to the appropriate section, so my previous comments are no longer valid!

 
Just read all you need from a csv-file.
 

The limit is 64 with MT5/mql5 too.

So 256 in the documentation is probably an error, you should write to Metaquotes Service Desk.


 
Alain Verleyen:

The limit is 64 with MT5/mql5 too.

So 256 in the documentation is probably an error, you should write to Metaquotes Service Desk.


Maybe a simple question but how should I write/contact them, email?

 
Lothar Okkerse:

Maybe a simple question but how should I write/contact them, email?

Read the following forum thread for instructions: https://www.mql5.com/en/forum/628
Get in touch with developers using Service Desk!
Get in touch with developers using Service Desk!
  • www.mql5.com
We therefore attach great importance to all user reports about issues in our programs and try to answer each one of them.
Reason: