Bitcoin Forum
December 12, 2024, 02:47:43 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 2 [3]  All
  Print  
Author Topic: Icbit.se, the bucket shop.  (Read 7967 times)
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
February 06, 2013, 10:04:14 AM
 #41

does anyone know why my trades shown on the picture below have negative profit? I bought 2 contracts at 20.00$ and 20.05$, then sold at 20.5301 and logs show that I lost...

2013-02-02 Buy $20.00
2013-02-02 Buy $20.05

Then later that day after you bought, clearing was $20.7095, so on the two positions you were paid variation margin due to the clearing price of $20.7095.  Then on 2013-02-03 the clearing was $21.0750 and you earned even more. 

Then each day the clearing price was lower so your variation margin was negative.  Then you sold at $20.5301 which was lesss than the most recent  previous clearing price -- $20.8101.    The very last transaction in the log is the 0.5% trading fee.

So your trade resulted in half a percent trading fee when you bought (the two 0.005 BTC trading fee) plus the half a percent trading fee when you sold (the combined 0.01 BTC trading fee entry) and the sum of the margin variances.  Now remember, the variation margin is calculated as:
 VM = -(1/PriceClose - 1/PriceOpen) * S;
which is
  (-(1/PriceClose - 1/PriceOpen) * 10) * N contracts

For instance, the last variation margin had a clearing price of $20.8101 and you sold at $20.5301.  So the variation margin was:
  VM = (-(1/$20.5301 - 1/$20.8101) * 10) * 2 contracts
  VM = (-(0.0487089687 - 0.0480535893) * 10) * 2 contracts
  VM = (-(0.0006553794) * 10) * 2 contracts
  VM = (-0.0065537940) * 2 contracts
  VM = -0.01310758 BTC

(somewhere the calculation must be getting precision issues, as my rounding at 8 decimals is off by a really small amount from the 0.01310526 reported in your pic.)

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


davidoski
Sr. Member
****
Offline Offline

Activity: 297
Merit: 250



View Profile
February 06, 2013, 11:49:12 PM
 #42

Thank you for the thorough explanation. I now understand the logs. It's pretty hard to get know how much you earn/lost from a particular trade if you have a few opened and keep them for two weeks or more. Addition of all variations during that time won't give you the number of the gain/loss for a single trade but the gain/loss of aggregate positions. Not to mention the trickiness of adding a dozen of 8 decimal numbers...

Chancellor on brink of second bailout for banks
Pages: « 1 2 [3]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!