With the following records,
I want to get the balance of "Stock" on 01/02
with -X $
Should be $10.00
----------
2021-01-01 * Opening Balance
Assets:Broker:Cash $10.00
Equity:Opening Balances
2021/01/01 * Stock purchase
Assets:Broker:Stock 1 AA @ $1.00
Assets:Broker:Cash
2021/01/02 * Stock purchase
Assets:Broker:Stock 1 AA @ $5.00
Assets:Broker:Cash
2021/01/03 * Stock purchase
Assets:Broker:Stock -1 AA @ $2.00
Assets:Broker:Cash
2021/01/04 * Stock purchase
Assets:Broker:Stock -1 AA @ $3.00
Assets:Broker:Cash
----------
bal Stock -X $ -e 01/03
The result is $4.00
Not the expected result $10.00
-e Limit the processing to transactions before 01/03,is 01/02
but price on 01/03
How to get the correct result?