Download MetaTrader 5

Call 3_Level_ZZ_Semafor indicator using iCustom function

To add comments, please log in or register
yatin_soni
30
yatin_soni  

Hi,
Does anyone know how to call the 3_Level_ZZ_Semafor indicator using the iCustom function with all the default parameters? Its giving me the error message that it has the wrong parameter count.

iCustom(NULL,0,"3_Level_ZZ_Semafor" ,true,false,false,false,false,false ,false,false,false,false,false,fals e,10,false,1,5,false,false,100,1,20 ,20,5,50,Red,0,2,"ahooga.wav",Blue, 0,2,"siren.wav",Orange,2,1,Magenta, 2,1,Violet,2,1,Red,0,3,Blue,0,3,Red,1,1,Blue,1,1,0.24,0.382,0.5,0.618,0.76,Red,Khaki,Gray,Khaki,Red,4,1,3,1,5,13,34,"1,3","8,5","13,8",140,141,142,1,2,4,1,1) - using example of Buffer = 1 positon = 1

I have attached the indicator.


Thanks in advance

Files:
Alain Verleyen
Moderator
32410
Alain Verleyen  
sonipipster:

Hi,
Does anyone know how to call the 3_Level_ZZ_Semafor indicator using the iCustom function with all the default parameters? Its giving me the error message that it has the wrong parameter count.

iCustom(NULL,0,"3_Level_ZZ_Semafor" ,true,false,false,false,false,false ,false,false,false,false,false,fals e,10,false,1,5,false,false,100,1,20 ,20,5,50,Red,0,2,"ahooga.wav",Blue, 0,2,"siren.wav",Orange,2,1,Magenta, 2,1,Violet,2,1,Red,0,3,Blue,0,3,Red,1,1,Blue,1,1,0.24,0.382,0.5,0.618,0.76,Red,Khaki,Gray,Khaki,Red,4,1,3,1,5,13,34,"1,3","8,5","13,8",140,141,142,1,2,4,1,1) - using example of Buffer = 1 positon = 1

I have attached the indicator.


Thanks in advance

   iCustom(NULL,0,"3_Level_ZZ_Semafor",1,1) - using example of Buffer = 1 positon = 1
yatin_soni
30
yatin_soni  
angevoyageur:



Thanks, I will try it. I thought that you had to always specify the parameters.

Alain Verleyen
Moderator
32410
Alain Verleyen  
sonipipster:


Thanks, I will try it. I thought that you had to always specify the parameters.

 

 

No, please read the documentation :

The passed parameters and their order must correspond with the declaration order and the type of extern variables of the custom indicator. If the values of input parameters  is not specified, the default values will be used.
To add comments, please log in or register