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

Visualizing investment projections

The first thing we’re going to need is the ability to calculate the preceding projections year by year, so we can eventually plot the outcome. Let’s see how we can do that:

def returnProjectionByYear(expectedReturn, expectedRisk, initialInvestment, monthlyInvestment, years):
  from datetime import date
  import pandas as pd
  df = pd.DataFrame({'date': [],
                   'lowValue': [],
                   'value': [],
                   'highValue': []})
  df.set_index('date')
  for year in range(years+1):
    newValue = returnProjection...
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