-
Book Overview & Buying
-
Table Of Contents
Algorithmic Short Selling with Python - Second Edition
By :
The TradeLog contains the raw material for a rigorous post-trade analytics practice. Three functions answer the questions that P&L alone cannot: how badly did individual trades move against us during the holding period? How often and how deeply does the equity curve dip into drawdown? How many consecutive losses do the strategies produce on average, and what is the highest consecutive number of losses?
These functions are intentionally minimal. Each does one thing. None requires a live Airtable connection: they operate on a pandas DataFrame of closed trades. Load the TradeLog as a CSV or fetch records from Airtable and pass them in.
This minimalism obeys a simple philosophy: focus on the losses and the profits will take care of themselves. This is where we need to take a long hard look at our trading history. The purpose is to analyze losses and look for continuous improvements. We will look at Maximum adverse excursion (MAE), drawdowns, and consecutive...