Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Inflation adjustment #3215

Open
RomanLangrehr opened this issue Mar 7, 2023 · 1 comment
Open

[Discussion] Inflation adjustment #3215

RomanLangrehr opened this issue Mar 7, 2023 · 1 comment

Comments

@RomanLangrehr
Copy link
Contributor

I want to implement a new feature that allows for inflation adjustment (or adjustment to any other index) for the dashboard (and possibly more views), which is currently only possible with the heatmap widget.

The idea is basically what @chirlu suggested in #2975, namely to use a fictitious currency, but I want this currency to be invisible for the user.

Concretely, I want to add an UI element that allows the user to select "no inflation adjustment" or one benchmark index (e.g. tracking consumer price inflation). If a benchmark is selected, a fictitious currency (invisible to the user) is created that has a 1:1 exchange rate at the end of the reporting period (or the current day, I don't know what is better) and has the same performance as the index. That currency is then used as reporting currency, which effectively adjusts all widgets according to the selected benchmark.

Pros:

  • Any benchmark can be used (e.g. a money market index to adjust for risk-free return or Bitcoin to get your performance in Bitcoin)
  • All widgets get adjusted without any widget-specific code.
  • Absolute values (like monthly investment) also provide meaningful information (namely the amount in today's value)

Cons:

  • It will not be possible to have nominal and inflation-adjusted returns side-by-side in one dashboard.

It think this inflation adjustment is also helpful for the statement of assets diagram and the performance diagram.

Any other ideas to realize adjustment for inflation or feedback are welcome.
Are there any other places where inflation adjustments would be useful?

@funnym0nk3y
Copy link

Without knowing the inner workings of portfolio modeling such a feature as currency seems to introduce quite some technical debt. As you said there are already issues with showing adjusted and unadjusted values side by side.
In my opinion each widget should just use a time series of numbers for calculation. That time series could then be adjusted by a set of transformations like currency conversions and inflation adjustments, but also for course differences (for security comparison) and much more. Each transformation consists of a mathematical map for the values and a symbol map (transformation from EUR to USD consists of the exchange rate time series and the resulting symbol USD, inflation adjustment consists of inflation time series and USD-PPP as a symbol).
Regarding the UI/UX I'm not sure what the best approach is. Setting the "inflation adjusted" checkbox for every widget is tedious, defining multiple different time series for one security (e.g. MSCI world in EUR, USD, EUR-PPP, USD-PPP, etc.) seems confusing too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants