Hi, i have to get the last 6 buffer in the chart and associate it at some variable.
The indicator have buffer 0=!EMPTY_VALUE.
The indicator create the signal in the chart, it haven't external value . I need to associate the signal value for the previous six signal from now.
Which buffer has the signal you want? one buffer ? any buffer ? what is the name of the Indicator ?
Here there is the indicator 1...
So you need buffer 0 and buffer 1.
I want to register in 6 variable . the last 6 signal.
with this rules .
if buffer0 =! EMPTY_VALUE
if buffer 0 < buffer1 the value of buffer 0 must to be registered in low1,low2 for the other signal,and low3 for the last one
or
if buffer0 =! EMPTY_VALUE
if buffer0>buffer 1 the value of buffer 0 must to be registered in high1,high2 for the other signal,high3 for the last one..
I want to register in 6 variable . the last 6 signal.
with this rules .
if buffer 0 < buffer1 the value of buffer 0 must to be registered in low1,low2,low3
and if buffer0>beffer 1 the value of buffer 0 must to be registered in high1,high2,high3.
it can be the solution?
int start() { double temp = 0; double temp1 = 0; int count = 0; int n = 0; int i = 0; int a = 0; int e = 0; double PointLow[3]; double PointHigh[3]; while( n < 3) { temp = iCustom(NULL,0,"1",0,i); temp1 = iCustom(NULL,0,"1",1,i); if(temp != EMPTY_VALUE && temp<temp1) { PointLow[n] = temp; n++; } i++; } while( a < 3) { temp = iCustom(NULL,0,"1",0,e); temp1 = iCustom(NULL,0,"1",1,e); if(temp != EMPTY_VALUE && temp<temp1) { PointHigh[a] = temp; a++; } e++; } //---- return(0); }
it can be the solution?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, i have to get the last 6 buffer in the chart and associate it at some variable.
The indicator have buffer 0=!EMPTY_VALUE.
I try in this way but nothing.