Sackymotto 11 posts msg #143539 - Ignore Sackymotto |
5/13/2018 3:28:25 AM
I need to write a filter that will list stocks if one of several conditions in the filter is met. I don't want the stock to have to meet all of the requirements. This is what it would look like:
Or RSI(2) 1 day ago below 5
Or RSI(2) 2 day ago below 5
Or RSI(2) 3 day ago below 5
Or RSI(2) 4 day ago below 5
Or RSI(2) 5 day ago below 5
Does anyone know how to make such a filter? Any help would be appreciated.
|
four 5,087 posts msg #143540 - Ignore four modified |
5/13/2018 5:35:42 PM
perhaps...
set{x, count(rsi(2) 1 day ago < 5,5)}
draw x line 1
draw rsi(2) line 5
add column x equals 1
sp500
|
xanhotep 1 posts msg #143543 - Ignore xanhotep |
5/14/2018 6:31:11 AM
Hey there,
maybe this can help you, it's a way that you can use a logic 'or': https://forums.stockfetcher.com/sfforums/?q=view&tid=28017&start=0
Have a great day!
|