build and evaluate investment strategies with Python

From online Instructor to published author

Hi, I’m Rune.

I have turned my passion for programming and teaching into several successful online courses and have an engaging social following.

In this book you will learn how to build and evaluate an investment strategy with Python.

  • It will teach you the principles of backtesting with real-life code examples.
  • It will demonstrate why you shouldn’t trust other peoples calculations.
  • The full Python code is available for download.

Never be worried if an investment strategy is solid. This book will teach you how to test and evaluate that.

10+ years of professional coding experience

With a PhD degree in Computer Science from Aarhus University of Denmark, a minor in mathematics, and an MBA from Henley Business School to master the financial aspects, Rune has the background to combine programming with finance.

In this book Rune shares with you how not to get cheated by convincing financial analysis you find in various books. It will enable you to verify and avoid pitfalls from presented investment strategies.

Don’t let poor financial analysis run your investments.

* plus VAT depending on your country

What will you get?

85 pages

85 pages of content with explanations of concepts and supporting code.

Investment strategy

You will know how to build simple investment strategies and test calculate the return using pandas.


It will teach you the principles of backtesting using return (CAGR), maximum drawdown, and volatility.

Starting from scratch

It will show you how to install all you need and various ways to get historic stock data.


You will learn how to visualize your results.

Covering concepts

Calculate return of portfolio, what correlation tells us and how to calculate it, and much more.

You can read books that promise you 12% return with valid calculations to back it up. It is called backtesting. But actually there is a catch that almost nobody can verify on their own. If you don’t want to be one of them then read and learn the skills.

Financial books assume that you, the reader, don’t have the possibility to do more than validate the given calculations in the book. This is true for almost everyone. But if you don’t want to be blinded by fancy calculations, which are optimized to give big returns, then read this book. 

Worried that you don’t have the coding skills needed? The full code is available and walking you through all needed to validate the investment strategy given in the book by David Alan Carter: The 12% Solution. All the code is available for download.