Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Algorithmic Short Selling with Python

You're reading from   Algorithmic Short Selling with Python Refine your algorithmic trading edge, consistently generate investment ideas, and build a robust long/short product

Arrow left icon
Product type Paperback
Published in Sep 2021
Publisher Packt
ISBN-13 9781801815192
Length 376 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Laurent Bernut Laurent Bernut
Author Profile Icon Laurent Bernut
Laurent Bernut
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface The Stock Market Game 10 Classic Myths About Short Selling FREE CHAPTER Take a Walk on the Wild Short Side Long/Short Methodologies: Absolute and Relative Regime Definition The Trading Edge is a Number, and Here is the Formula Improve Your Trading Edge Position Sizing: Money is Made in the Money Management Module Risk is a Number Refining the Investment Universe The Long/Short Toolbox Signals and Execution Portfolio Management System Other Books You May Enjoy
Index
Appendix: Stock Screening

Appendix: Stock Screening

This appendix provides a stock screener tool that will allow you to put everything we have learned in this book into practice. It addresses the most pressing issue for market participants: idea generation. We will build a screener across all the constituents of the S&P 500 index.

The sequence of events is as follows:

  1. Download all the current constituents of the S&P 500 from its Wikipedia webpage.
  2. Batch download OHLCV prices data from Yahoo Finance. We will drop the level to process each stock individually.
  3. Calculate the rebased relative series.
  4. Calculate regimes—breakout, turtle, moving averages (Simple Moving Average (SMA) and Exponential Moving Average (EMA)), and floor/ceiling—on both absolute and relative series. There will be an option to save each stock as a CSV file.
  5. Create a dictionary with the last row of each stock and append a list, from which we will create a dataframe.
  6. Sum up...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image