Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robo-Advisor with Python

You're reading from   Robo-Advisor with Python A hands-on guide to building and operating your own Robo-advisor

Arrow left icon
Product type Paperback
Published in Feb 2023
Publisher Packt
ISBN-13 9781801819695
Length 250 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Aki Ranin Aki Ranin
Author Profile Icon Aki Ranin
Aki Ranin
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Part 1: The Basic Elements of Robo-Advisors
2. Chapter 1: Introduction to Robo-Advisors FREE CHAPTER 3. Chapter 2: What Makes Up a Robo-Advisor? 4. Chapter 3: Robo-Advisor Platforms versus Algorithms 5. Chapter 4: Leasing, Buying, or Building Your Own Robo-Advisor 6. Part 2: Building Your Own Robo-Advisor
7. Chapter 5: Basic Setup and Requirements for Building a Robo-Advisor 8. Chapter 6: Goal-Based Investing 9. Chapter 7: Risk Profiling and Scoring 10. Chapter 8: Model Portfolio Construction 11. Chapter 9: Investment Projections 12. Chapter 10: Account Opening and KYC 13. Chapter 11: Funding Your Account 14. Chapter 12: Order Management and Execution 15. Part 3: Running and Operating Your Own Robo-Advisor
16. Chapter 13: Performance Reporting 17. Chapter 14: Rebalancing 18. Chapter 15: Dividends and Fee Management 19. Chapter 16: Regulations for Robo-Advisors 20. Index 21. Other Books You May Enjoy

Calculating P&L for your portfolio

Before we start writing more code, let’s cover a few basic terms and formulas that will come in handy in this chapter:

  • Time-Weighted Rate of Return (TWRR): This is the simplest method of projecting potential portfolio returns. This approach ignores any additional cash coming in or out of your portfolio. The formula for TWRR is as follows:

Here:

  • R is the return for the period
  • EV is the end value for the period
  • BV is the beginning value for the period
  • C is the added cash flow for the period

If we combine multiple periods, we can calculate TWRR as follows:

Here:

  • is the TWRR at period n
  • is the return for period 1
  • is the return for period n
  • Money-Weighted Rate of Return (MWRR): This is a more sophisticated version of TWRR, whereby we factor in cash flows coming in and going out of your investment. With MWRR, the timing...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image