wash_pattern
Default: ''
Regex of the set of accounts to search over for possible wash sales. This allows you to include your tax advantaged and all investment accounts.
TODO:
- show if a loss generated would be long term or short term
Tax loss harvester plugin for Fava (Beancount personal finance software).
Reports the set of lots that can be tax loss harvested from your beancount input file. Includes a comprehensive wash sale report. Example:
The example above shows that 350,100 USD of losses can be harvested by selling the rows listed. However, 1 BNCT of that would be considered a wash sale and will not be allowable. It also shows the account and quantities of each commodity to sell total sale proceeds (1,051,900 USD) if all the recommended lots were sold.
Clone the source to a directory (eg: plugins/fava/tlh relative to your beancount source).
Include this in your beancount source:
2010-01-01 custom "fava-extension" "plugins.fava.tlh" ""
Configure TLH through your beancount sources. Example:
2010-01-01 custom "fava-extension" "plugins.fava.tlh" "{
'account_field': 'account',
'accounts_pattern': 'Assets:Investments:Taxable',
'loss_threshold': 50,
'wash_pattern': 'Assets:Investments',
}"
account_fieldDefault: LEAF(account)
This string is a part of the beancount query. If you want to see the entire account name, set this to 'account'.
accounts_patternDefault: ''
Regex of the set of accounts to search over for tax loss harvesting opportunities. This allows you to exclude your tax advantaged and other non-investment accounts.
loss_thresholdDefault: 1
Losses below this threshold will be ignored. Useful to filter out minor TLH opportunities.
wash_patternDefault: ''
Regex of the set of accounts to search over for possible wash sales. This allows you to include your tax advantaged and all investment accounts.
TODO:
I recently shared a beancount tool for identifying tax loss harvesting opportunities. This is the fava plugin version. Starting a new thread for this because these these are different code bases, and I intend primarily to develop this one (the fava plugin) unless there is a lot of interest in the other as well.
It looks like if account_field is set to LEAF(account) then the URLs for the accounts are broken -- they take you to my-personal-ledger/account/LEAF instead of my-personal-ledger/account/Assets:Tree:Leaf
There's something wrong in how it collects the holdings. The command line version generates the correct set of holdings but the fava version also includes some lots that I sold last week. I haven't looked yet to figure out why they are being included.
The "purchases within the past 30 days" doesn't include purchases I made, it only includes sales I made. I think it is supposed to be the other way around?