To get the most out of this book
Sometimes we win, sometimes we learn. The best disposition to get the maximum out of this book is to have lost money on the markets. This will put you in an open state of mind!
Intermediate knowledge of Python, specifically the use of numpy
, pandas
, and matplotlib
will suffice. We will also use some non-standard Python libraries; yfinance
and scipy
. High school level competence in algebra and statistics is also necessary.
Download the example code files
The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Algorithmic-Short-Selling-with-Python. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
Download the color images
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://static.packt-cdn.com/downloads/9781801815192_ColorImages.pdf.
Conventions used
There are a number of text conventions used throughout this book.
CodeInText
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example; "From the rolling_profits
and rolling_losses
functions, calculate profit_ratio
."
A block of code is set as follows:
# Import Libraries
import pandas as pd
import numpy as np
import yfinance as yf
%matplotlib inline
import matplotlib.pyplot as plt
Any command-line input or output is written as follows:
3.52
Bold: Indicates a new term, an important word, or words that you see on the screen, for example, in menus or dialog boxes, also appear in the text like this. For example: "Did the price beat the volume at weighted average price (VWAP) or not?"
Warnings or important notes appear like this.
Tips and tricks appear like this.