Use indicator in other indicator

 

Hello, in the programming of my indicator i need the output data of two indicators, one of them is called X-ZZ.ex4

Use the iCustom function to call it, as follows:

double valor=iCustom(NULL,0,"..\\Indicators\\X-ZZ.ex4",0,0,1);

However i get an error in this line, saying not to recognize the file X-ZZ.mql4. My question is, do i necessarily need two files the .ex4 and the .mql4 to invoke indicators, or can i do it only with the .ex4?

Its input parameters of X-ZZ.ex4, are:

AlarmWithBox                      false

SoundWav                            alert wav

ExtDepth                             33

ExtDeviation                        5

ExtBackStep                         3

barn                                    1500

from                                    0

output parameter, is:

#: 0                 color: Silver


Its is an indicator that shows suns indicating the trend. Waiting for any suggestions, greetings.

 

I have tried this indicator which I downloaded from Forex Factory.

It doesn't require a mql4 file and there is no error on my MT4.

All bars which have no arrow data indicate zero because this is a zigzag pointer.

By the way, you don't need to add "..\\Indicators\\" before the name of the indicator, if it is in the indicator folder.


 
Naguisa Unada:

I have tried this indicator which I downloaded from Forex Factory.

It doesn't require a mql4 file and there is no error on my MT4.

All bars which have no arrow data indicate zero because this is a zigzag pointer.

By the way, you don't need to add "..\\Indicators\\" before the name of the indicator, if it is in the indicator folder.


thanks, this line work, i can take the data o price of Sol:


SolBuffer[i]=iCustom(NULL,0,"X-ZZ",false,"alert wav",33,5,3,1500,0,0,i);

 

Hi, how can i delete the Alert of X-ZZ in my indicator?. 

if i replace "alert wav" for zero (0), the metatrader4 is freeze 

 
RenatoMasias: if i replace "alert wav"

Comment out the entire PlaySound