Buffers

1
Dear mladen and team , i cant find the buffers to cal by iCustom the secondary trend arrows in your indicator, only get trend buffers. Can you help me pls.


double XO(int i)
{
double up = iCustom(NULL,0,"XO - mtf & alerts - choosable symbol ( 2 in 1 + arrows )",0,i+1)!=0;
double dn = iCustom(NULL,0,"XO - mtf & alerts - choosable symbol ( 2 in 1 + arrows )",1,i+1)!=0;

if(up)
{
return(1);
}
if(dn)
{
return(-1);
}

return(0);
}


bool Arrowup(int i)
{
bool up=false;

up = XO(i)==1;

if(up)
{
return true;
}
return false;



}
bool Arrowdn(int i)
{
bool dn=false;

dn = XO(i)==-1;

if(dn)
{
return true;
}
return false;
}


Re: Buffers

2
Cladi39 wrote: Tue May 30, 2017 2:58 am Dear mladen and team , i cant find the buffers to cal by iCustom the secondary trend arrows in your indicator, only get trend buffers. Can you help me pls.


double XO(int i)
{
double up = iCustom(NULL,0,"XO - mtf & alerts - choosable symbol ( 2 in 1 + arrows )",0,i+1)!=0;
double dn = iCustom(NULL,0,"XO - mtf & alerts - choosable symbol ( 2 in 1 + arrows )",1,i+1)!=0;

if(up)
{
return(1);
}
if(dn)
{
return(-1);
}

return(0);
}


bool Arrowup(int i)
{
bool up=false;

up = XO(i)==1;

if(up)
{
return true;
}
return false;



}
bool Arrowdn(int i)
{
bool dn=false;

dn = XO(i)==-1;

if(dn)
{
return true;
}
return false;
}
Cladi39

There are two buffers - named trend1 and trend2 - those buffers are the buffers that you should check


Re: Buffers

7
Cladi39 wrote: Wed May 31, 2017 11:36 am Sorry for my basic question

When you use iCustom and want to join 2 buffers you put (A&&B)

My question is what you put when you need A or B?

Thnks mladen.
Cladi, if I'm understaning right it would be something like (A || B).


Who is online

Users browsing this forum: No registered users and 16 guests