hi folks,
buffer1 sometimes has a value, sometimes not.
every period i want to work with the value of the last buffer with value, how can i do that?
buffer[i+4]= x
buffer[i+3]= EMPTY_VALUE
buffer[i+2]= y
buffer[i+1]= z
buffer[i] = EMPTY_VALUE
if( Close[i]<buffer["last time with value"]) buffer2[i]=....
many thanks!
buffer1 sometimes has a value, sometimes not.
every period i want to work with the value of the last buffer with value, how can i do that?
buffer[i+4]= x
buffer[i+3]= EMPTY_VALUE
buffer[i+2]= y
buffer[i+1]= z
buffer[i] = EMPTY_VALUE
if( Close[i]<buffer["last time with value"]) buffer2[i]=....
many thanks!