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. Here is an example: "This code will use the DataReader function from the pandas_datareader package."
A block of code is set as follows:
import pandas as pd
from pandas_datareader import data
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
if order['action'] == 'to_be_sent':
# Send order
order['status'] = 'new'
order['action'] = 'no_action'
if self.ts_2_om is None:
Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "A mean reversion strategy that relies on the Absolute Price Oscillator (APO) trading signal indicator."