It worked now, but It requires some masking, i guess otherwise the call will be too long, but I do not know for sure.
Currently here where i stuck again, in a case anybody can explore -
In short , I am getting RSI which is not correct for the set of filtered stocks, see below. RSI 3 days long showed 73.622047 across all pre-selected stocks. I think I am missing smth.
# Make our factors
# Using a mask limits the computation to only the specified asset.
close_1_day_ago = PreviousClose(window_length = 1) #, mask = my_filter)
close_2_day_ago = PreviousClose(window_length = 2) #, mask = my_filter)
close_3_day_ago = PreviousClose(window_length = 3) #, mask = my_filter)
close_4_day_ago = PreviousClose(window_length = 4) #, mask = my_filter)
close_5_day_ago = PreviousClose(window_length = 5) #, mask = my_filter)
#securities = StaticAssets(symbols(['AAPL']))
condition1 = close_3_day_ago < close_2_day_ago
condition2 = close_2_day_ago < close_1_day_ago
condition3 = close_3_day_ago < close_4_day_ago
condition4 = close_4_day_ago < close_5_day_ago
all_conditions = condition1 & condition2 & condition3 & condition4
base_universe = Q500US()
my_filter = base_universe & all_conditions
rsi_window_length = 14
#rsi = RSI(window_length=rsi_window_length) #, mask = securities)
#rsi_1_day_ago = Prev_N_RSI(window_length = rsi_window_length + 1) #, mask = securities)
#rsi_2_day_ago = Prev_N_RSI(window_length = rsi_window_length + 2, mask = my_filter)
rsi_3_day_ago = Prev_N_RSI(window_length = rsi_window_length + 3, mask = my_filter)
# Now create our pipeline object which does the heavy lifting to get the data we specify
# Add a screen to just return specific assets. Otherwise all assets in the Q database are returned
# Defining the pipeline is really just defining the columns we want in the returned dataframe and
# limiting the rows (if desired) to a particular subset of assets.
my_pipe = Pipeline(
screen = my_filter, #securities
columns = {
'close_1_day_ago': close_1_day_ago,
'close_2_day_ago': close_2_day_ago,
'close_3_day_ago': close_3_day_ago,
'close_4_day_ago': close_4_day_ago,
'close_5_day_ago': close_5_day_ago,
#'rsi' : rsi,
#'rsi_1_day_ago' : rsi_1_day_ago,
#'rsi_2_day_ago' : rsi_2_day_ago,
'rsi_3_day_ago' : rsi_2_day_ago,
}
)