Download MetaTrader 5

maximal parameters for icustom()

To add comments, please log in or register
Deposit to your account in any convenient way. There are 4 of them here!
Tradeing Trader
556
Tradeing Trader 2014.01.13 14:20 

Hello,

i get the error message wrong parameters count because i think i have to many parameters in the icustom function, does somebody know how many parameters are maximal allowed?

I am trying to call the icustom function here with over 60 parameter settings.

Simon Gniadkowski
Moderator
17999
Simon Gniadkowski 2014.01.13 14:47  
PlanandTrade:

Hello,

i get the error message wrong parameters count because i think i have to many parameters in the icustom function, does somebody know how many parameters are maximal allowed?

I am trying to call the icustom function here with over 60 parameter settings.

From here: https://docs.mql4.com/basis/functions

"Amount of passed parameters is limited and cannot exceed 64."

the 64 is the total number, not just the ones in your Indicators externs . . .

Tradeing Trader
556
Tradeing Trader 2014.01.13 14:51  
And if my indicator have now more then 64 settings, how can i call it then with icustom() function?
Simon Gniadkowski
Moderator
17999
Simon Gniadkowski 2014.01.13 14:54  
PlanandTrade:
And if my indicator have now more then 64 settings, how can i call it then with icustom() function?
You can by using the default value externs in the Indicator, then there is no need to specify any of them in the iCustom() call.
Tradeing Trader
556
Tradeing Trader 2014.01.13 14:55  
My indicator have more then 64 settings and i normaly wanted to call the indicator with icustom from a EA.
Simon Gniadkowski
Moderator
17999
Simon Gniadkowski 2014.01.13 14:56  
PlanandTrade:
Good thank you for the info, so there is also no trick how it can be done.
I edited my post . . .
Tradeing Trader
556
Tradeing Trader 2014.01.13 14:58  
RaptorUK:
I edited my post . . .


I think what you mean is to call the indicator with icustom but no parameters, i know that it work so, but i want to make the indicator settings toghter with the EA and i need to write then all settings to the icustom parameters
Simon Gniadkowski
Moderator
17999
Simon Gniadkowski 2014.01.13 15:05  
PlanandTrade:

I think what you mean is to call the indicator with icustom but no parameters, i know that it work so, but i want to make the indicator settings toghter with the EA and i need to write then all settings to the icustom parameters
Then you need to reduce the number of parameters.
Tradeing Trader
556
Tradeing Trader 2014.01.13 15:16  
alright thank you for the infos.
To add comments, please log in or register