SYNTAX  valuewhen(EXPRESSION, ARRAY, n = 1)  
RETURNS ARRAY  
FUNCTION  Returns the value of the ARRAY when the EXPRESSION was true on the n 
-th most recent occurrence. Note: this function allows also 0 and negative 
values for n - this enables referencing future  
EXAMPLE valuewhen( cross( close, ma(close,5) ) ,macd(), 1)  


So, What is the difference between n=1 and n=0 like below :
valuewhen( cross( close, ma(close,5) ) ,macd(), 0)  

Anyone who really knows ?


Reply via email to