Hi,

I'd like to run a simplified version of Asset Allocation 
(https://www.ledger-cli.org/3.0/doc/ledger3.html#Asset-Allocation). The 
simplified meaning that there's no need to run on the full transaction 
file. I would rather extract, using the 'equity' report, the balances in 
the investment accounts and then use the resulting file as the basis.

The asset allocation part would, hopefully, be defined in a separate file 
but this is not too important at this stage.

So, I've extracted the balances and got one record with

2019/04/17 Opening Balances
    Assets:Investments:Broker:Shares:XYZ    50.0000 XYZ
    Equity:Opening Balances                       -50.0000 XYZ

Then I've defined the allocation as:

= expr ( commodity == 'XYZ')
    (Allocation:Equity)                    1.000

and then I run

ledger -f alloc.txt bal Allocation --current --format "\
        %-17((depth_spacer)+(partial_account))\
        %10(percent(market(display_total), market(parent.total)))\
        %16(market(display_total))\n%/"


from the tutorial. Nothing comes out, though.
Tried also running it (on Windows) in one line:

> ledger -f alloc.txt bal Allocation --current --format 
"%-17((depth_spacer)+(partial_account)) %10(percent(market(display_total), 
market(parent.total))) %16(market(display_total))\n%/"

but no luck either.
Any hints on what's wrong?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to