[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ValueWhen and Trough function



PureBytes Links

Trading Reference Links


Hello all, I want to generate the value of the corresponding CLOSEs when 
the RSI makes the most recent and 2nd most recent troughs (using 10% 
swings).
 
My formula is as follow:
 
ValueWhen(1, Trough(1, RSI(9), 10), C) and
ValueWhen(1, Trough(2, RSI(9), 10), C) 
 
I also tried to use

ValueWhen(1, Trough(1, RSI(9), 10), C) and
ValueWhen(2, Trough(1, RSI(9), 10), C) 
 
However, they don't really generate the correct numbers that I 
wanted.
 
Would someone on the list kind enough to help?
 
Ed