Momentum pipeline example longs rsi.top(3)?

55 views
Skip to first unread message

Simon Chan

unread,
Sep 1, 2016, 7:04:57 AM9/1/16
to Zipline Python Opensource Backtester
I was reading the momentum_pipeline.py example (https://github.com/quantopian/zipline/blob/master/zipline/examples/momentum_pipeline.py) and I see:

def make_pipeline():
rsi = RSI()
return Pipeline(
columns={
'longs': rsi.top(3),
'shorts': rsi.bottom(3),
},
)

Why is it that we long the top 3 RSI shares? If it is in the top 3, it must mean that the RSI is at +70 which means it is overbought and the prices will decline. Is it not supposed to be short the rsi.top(3) and long the rsi.bottom(3)?

Larry Woods

unread,
Sep 5, 2016, 1:34:17 PM9/5/16
to Zipline Python Opensource Backtester
Probably typo.
Reply all
Reply to author
Forward
0 new messages