Normally when you use -X <commodity> to request that amounts be reported in a
specific commodity, Ledger uses these values:
For the register report, use the value of that commodity on the date of
the posting being reported, with a <Revalued> posting added at the end of
today's value is different from the value of the last posting.
For the balance report, use the value of that commodity as of today.
You can now specify -H to ask that all valuations for any amount be done
relative to the date that amount was encountered.
You can also now use -X (and -H) in conjunction with -B and -I, to see
valuation reports of just your basis costs or lot prices.
John