Skip to Content
Python for Algorithmic Trading Cookbook
book

Python for Algorithmic Trading Cookbook

by Jason Strimpel
August 2024
Intermediate to advanced
406 pages
9h 25m
English
Packt Publishing
Content preview from Python for Algorithmic Trading Cookbook

9

Assess Backtest Risk and Performance Metrics with Pyfolio

No single risk or performance metric tells the entire story of how a strategy might perform in live trading. Metrics such as the Sharpe ratio, for instance, focus mainly on returns relative to volatility but neglect other risks such as drawdown or tail risk. Similarly, using only maximum drawdown as a measure ignores the risk-adjusted returns and might discard strategies that are robust but temporarily underperforming. The composite view obtained through multiple metrics provides a more nuanced understanding of how the strategy is likely to behave under varying market conditions. Taking it a step further, visualizing risk and performance metrics over time can capture strategy dynamics ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Algorithmic Trading Cookbook

Python Algorithmic Trading Cookbook

Pushpak Dagade

Publisher Resources

ISBN: 9781835084700Supplemental Content