Dear Quantopians,
I try to create filter! Work with template algorithm.
Lets see on basic template function:
def my_pipeline(context):
"""
A function to create our dynamic stock selector (pipeline).
"""
pipe = Pipeline()
# Create a dollar volume factor.
dollar_volume = AverageDollarVolume(window_length=1)
pipe.add(dollar_volume, 'dollar_volume')
# Pick the top 1% of stocks ranked by dollar volume.
high_dollar_volume = dollar_volume.percentile_between(99, 100)
pipe.set_screen(high_dollar_volume)
return pipe
But I need to filter with Day's - Top losers and Top winners 5-10 Narrowed down, for example! How to do that? I cant find that with quantopian API lib.
Is it custom filter? Any ideas to start with?
Thanks a lot.