Hello,
Before I start I know pipeline is used to create dynamic stock selection but I want to use it in a notebook where you can apply factors to the pipeline but filter it to just one stock at the end. (Ideally the SPY500).
Is it possible to, for example, create a pipeline that gets the RSI for the past week and then filters the pipeline data so that it only shows for the SPY500 in a notebook?
Something along the lines of...
def make_pipeline():
rsi = RSI(inputs=[USEquityPricing.close], window_length=5)
return Pipeline(
columns={
'RSI': rsi,
},
screen=sid == 8554 or symbol == 'SPY',
)
Thanks, Haydn