Page 1 of 1

Buffers

Posted: Tue May 30, 2017 2:58 am
by Cladi39
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

Posted: Tue May 30, 2017 3:13 am
by mladen
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

Posted: Tue May 30, 2017 3:36 am
by Cladi39
mladen wrote: Tue May 30, 2017 3:13 am Cladi39

There are two buffers - named trend1 and trend2 - those buffers are the buffers that you should check
I get it buffers 2 and 3, thanks soo much mladen you always help, god bless you.

Re: Buffers

Posted: Tue May 30, 2017 4:24 am
by Cladi39
Sorry again mladen but i have an arrow in any candle of the secundary trend with buffers 2 and 3, i only need the arrow in begining of the secondary trend. Your help is preciated.

Re: Buffers

Posted: Wed May 31, 2017 11:34 am
by Cladi39
I find the solution mladen thanks soo much.

Re: Buffers

Posted: Wed May 31, 2017 11:36 am
by Cladi39
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.

Re: Buffers

Posted: Wed May 31, 2017 11:58 am
by mrtools
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).

Re: Buffers

Posted: Wed May 31, 2017 2:49 pm
by Cladi39
mrtools wrote: Wed May 31, 2017 11:58 am Cladi, if I'm understaning right it would be something like (A || B).
Thats it mladen thanks soo much.