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
2Cladi39Cladi39 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;
}
There are two buffers - named trend1 and trend2 - those buffers are the buffers that you should check
Re: Buffers
3I get it buffers 2 and 3, thanks soo much mladen you always help, god bless you.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
Re: Buffers
4Sorry 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
6Sorry 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.
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
7Cladi, if I'm understaning right it would be something like (A || B).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.
Re: Buffers
8Thats it mladen thanks soo much.mrtools wrote: Wed May 31, 2017 11:58 am Cladi, if I'm understaning right it would be something like (A || B).