How would I find the top N stocks, by gap? And the bottom N? Thought I might continue to try to learn this pipeline thingy.
How would I find the top N stocks, by gap? And the bottom N? Thought I might continue to try to learn this pipeline thingy.
HI Grant,
Thanks for posting this. The problem I am having with this approach is that you detect the gappers from the previous day. So for example, in place_orders, when examining context.output, you would have a list of stocks that gapped the day before. How could you see the rappers for the current trading day?.
Thanks
Jorge,
You could use pipeline to generate a universe of stocks. Then, in the first minute of trading, scan through the list to determine which ones gapped.
Grant