--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/387a6f89-4754-4ff2-94e6-b2a8eace452e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/DD006CDC-AB7B-49F7-A7F3-2977E029361F%40joyful.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/DD006CDC-AB7B-49F7-A7F3-2977E029361F%40joyful.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/DB02D570-84C7-4A0F-8D66-E9FFAE1D9CE5%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/39BD5260-269D-4116-9360-714F45F7F8E4%40joyful.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/DB02D570-84C7-4A0F-8D66-E9FFAE1D9CE5%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/67285602-C342-49A1-B568-93564B38CB68%40hass.net.br.
My profit example is wrong
Assets:cash should be $ 460 instead of $452. This way profit correctly balances to $8.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/3CC0FCC1-9D67-4E9B-9185-6CD62B4B9997%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/0b3401d5f7e7%24731771c0%2459465540%24%40hass.net.br.
These transactions seem to be off.
You paid $ 454.66 for the 4 contracts on the first leg, but you’re not adjusting you loss for the brokerage fees your total loss will be $ 454.66 instead of $452 on the third leg.
What I recommend you to do is let hledger calculate the amount paid for each contract ($454.66/4 = $ 113,665) and don’t hard set the asset price on the first transaction.
You can do that by removing the price paid – everything after @ - and use the -V flag when running the reports and you get the total amount paid on the transaction, which is what matters in the end. Again I used to use ledger but I’m sure hledger works the same.
On the other leg brokerage fees weren’t calculated either, your profit before taxes should be $769.31 instead of 772
When you balance the transactions you should get a total profit of $314.65 if I’m not mistaken
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/8436D088-5DD9-4303-805E-A009D308FC1D%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/0b6401d5f7ef%24bf4d8270%243de88750%24%40hass.net.br.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/348CD895-58FD-40AA-B3F0-2CFAE5DA3761%40joyful.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/2658FC27-18FE-4881-825A-A35844B0BCEC%40gmail.com.
On Jan 24, 2021, at 07:54, the.so...@gmail.com <the.so...@gmail.com> wrote:
Dear Brandon,
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/e2d62d37-8afb-4377-840d-60d7ac937ad7n%40googlegroups.com.