diff --git a/examples/roi-unrealised.ledger b/examples/roi-unrealised.ledger index 97d402b41..340049e7d 100644 --- a/examples/roi-unrealised.ledger +++ b/examples/roi-unrealised.ledger @@ -3,14 +3,14 @@ ; By adding some fake transactions you can make it show unrealised gains. comment -$ hledger -f examples/roi-unrealised.ledger roi --inv Assets -b 2015-01-01 -e 2019-01-01 --pnl Income --yearly +$ hledger -f examples/roi-unrealised.ledger roi --inv Assets -b 2015-01-01 -e 2019-01-01 --pnl Income --yearly --value=then +---++------------+------------++---------------+----------+-------------+--------++--------+--------+ | || Begin | End || Value (begin) | Cashflow | Value (end) | PnL || IRR | TWR | +===++============+============++===============+==========+=============+========++========+========+ -| 1 || 2015/01/01 | 2015/12/31 || 717.4 | 0 | 756.30 | 38.90 || 5.42% | 5.42% | -| 2 || 2016/01/01 | 2016/12/31 || 756.30 | 0 | 998.80 | 242.50 || 31.96% | 31.96% | -| 3 || 2017/01/01 | 2017/12/31 || 998.80 | 0 | 1151.20 | 152.40 || 15.26% | 15.26% | -| 4 || 2018/01/01 | 2018/12/31 || 1151.20 | 0 | 1145.00 | -6.20 || -0.54% | -0.54% | +| 1 || 2015-01-01 | 2015-12-31 || 725.50 | 0 | 756.30 | 30.80 || 4.24% | 4.25% | +| 2 || 2016-01-01 | 2016-12-31 || 756.30 | 0 | 998.80 | 242.50 || 31.96% | 31.96% | +| 3 || 2017-01-01 | 2017-12-31 || 998.80 | 0 | 1151.20 | 152.40 || 15.26% | 15.26% | +| 4 || 2018-01-01 | 2018-12-31 || 1151.20 | 0 | 1145.00 | -6.20 || -0.54% | -0.54% | +---++------------+------------++---------------+----------+-------------+--------++--------+--------+ end comment @@ -116,56 +116,3 @@ P 2016-12-30 RY 93.56 P 2017-12-30 RY 105.32 P 2018-12-30 RY 100.02 P 2019-11-10 RY 108.44 - -; Here begins the fake transactions that allow the roi command to give an estimate for the unrealized yearly investment, these are not actual buy and sell transactions! - -2015-12-31 Pretend to Sell all to get PnL value for end of 2015 - Income:PnL - Assets:Trading:RY -10 RY @ 71.74 - Assets:Cash 725.50 - -2016-01-01 Reverse Pretend to Sell all to get PnL value for end of 2015 - Income:PnL - Assets:Trading:RY 10 RY @ 71.74 - Assets:Cash -725.50 - -2016-12-31 Pretend to Sell all to get PnL value for end of 2016 - Income:PnL - Assets:Trading:RY -10 RY @ 71.74 - Assets:Cash 935.60 - -2017-01-01 Reverse Pretend to Sell all to get PnL value for end of 2016 - Income:PnL - Assets:Trading:RY 10 RY @ 71.74 - Assets:Cash -935.60 - -2017-12-31 Pretend to Sell all to get PnL value for end of 2017 - Income:PnL - Assets:Trading:RY -10 RY @ 71.74 - Assets:Cash 1053.20 - -2018-01-01 Reverse Pretend to Sell all to get PnL value for end of 2017 - Income:PnL - Assets:Trading:RY 10 RY @ 71.74 - Assets:Cash -1053.20 - -2018-12-31 Pretend to Sell all to get PnL value for end of 2018 - Income:PnL - Assets:Trading:RY -10 RY @ 71.74 - Assets:Cash 1000.20 - -2019-01-01 Reverse Pretend to Sell all to get PnL value for end of 2018 - Income:PnL - Assets:Trading:RY 10 RY @ 71.74 - Assets:Cash -1000.20 - -2019-11-09 Pretend to Sell all to get PnL value for end of 2019-11-10 - Income:PnL - Assets:Trading:RY -10 RY @ 71.74 - Assets:Cash 1084.40 - -2019-11-10 Reverse Pretend to Sell all to get PnL value for end of 2019-11-10 - Income:PnL - Assets:Trading:RY 10 RY @ 71.74 - Assets:Cash -1084.40 -