Hi Mattsun,
Thank you for your message.
1. The 'short term' buy/sell, how is that operated? Do you buy BTC from an exchange (e.g. bitstamp), withdraw it from bitstamp then deposit to another exchange (e.g. bitfinex) and sell it? If that's the case, the long confirmation time might reduce the price difference or even switch the price position, how do you deal with that? If that's not the case, what do you mean by 'short sell'?
Again, there is
no USD transfer and
no BTC transfer between the exchanges. So we don't have to deal with the latency of withdraws and deposits. That's one of the advantages of long/short strategies. But let me explain what
short selling means and maybe it will help you and others on this forum to understand how the strategy works.
Short selling is not a Bitcoin thing and it is common in the financial market industry. I actually work on Wall Street so my examples will be closer to my actual job than Bitcoin.
- First the basics: Let's say you think, based on your financial analysis or your favorite crystal ball, that the Apple stock will go up within the next few weeks and you want to profit from that. So today you buy 10 shares of AAPL at $100. Then the stock price goes up (your crystal ball was right!) and after two week AAPL is priced at $120. You decide to sell your 10 shares of AAPL. Your profit: 10x$120 - 10x$100 = $1,200 - $1,000 = $200. Well done! We say that you were long on this position (buy then sell later).
- Now let's say that you think that the Apple stock will drop. You don't own any AAPL shares but you want to profit from that drop. So this is what you can do: you can ask your broker to borrow from him, say, 10 shares of AAPL and you promise that you will give him back these 10 shares later. Once your broker agrees to lend you the 10 shares (I won't go into the details about margin accounts) you can go to the market and sell these 10 shares, even if you don't actually own them!
Let's say today AAPL is at $100. You borrow 10 shares from your broker and sell them on the market at $100. You make $1,000 of that selling, but you still have a debt of 10 shares towards your broker. Two weeks later, your crystal ball is right (again!) and the price of AAPL drops to $80. You decide to buy 10 shares on the market at $80 and give them back to your broker. That's it! You cleared your debt towards your broker and this is your profit on the operation: sell 10x$100 then buy back 10x$80 = $1,000 - $800 = $200. Well done again! The whole operation you just did is called short selling and we say you were short on this position (sell then buy later).
The examples I gave are speculative ones where you try to forecast the market. But short selling is also used to protect your investments against market fluctuation, in particular sudden market falls. Here is an oversimplified example to illustrate:
AAPL is at $100 and MSFT (Microsoft) is at $50. To be market-neutral (i.e. protected against market fluctuation) you can be long on AAPL and short on MSFT at the same time. For that you would buy 10 shares of AAPL (long $1,000) and short sell 20 shares of MSFT (short $1,000). Now let's see what happens when the market suddenly drops by 20%!
- AAPL price goes from $100 to $80 (-20%).
- MSFT price goes from $50 to $40 (-20%).
You decide to exit the market by closing your two positions:
- You sell your AAPL shares for $800 (10x$80). You originally bought them $1,000: you lose $200 on that long position.
- You buy back your MSFT shares for $800 (20x$40). You originally sold them for $1,000: you make $200 on that short position.
As you can see your loss is $0 thanks of the long/short strategy you used (long AAPL, short MSFT).
As you can imagine, if the whole market goes up your profit will be ...$0. So how do we make money in a long/short strategy? By betting on the discrepancy between the positions and this is exactly what we do with Blackbird on Bitcoin: if Bitfinex prices Bitcoin at $240 and Bitstamp prices at $200 we think that Bitfinex is overpriced while Bitstamp is underpriced: we go short on Bitfinex and go long on Bitstamp until the two prices are similar again. You will have more details about how the long/short strategy works with Blackbird on the
GitHub page of the project.
2. Still the 'short sell', so far as I know, bitstamp doesn't have an API for 'Instant Transaction', you can only place a buy/ask offer by API. How do you 'short sell'?
You're right: as of today it's not possible to short sell on Bitstamp. However, it's possible to short sell on Bitfinex, OKCoin and others. Note that the short selling operation is usually pretty straightforward and the Bitcoin lending part is automatically done for you by the exchanges.
3. Do you always see the price position switch between the bitcoin exchanges you selected? I found some exchanges price position maintains the same all the time. For example, bitkonan's price are always higher than bitstamp.
Between Bitfinex, OKCoin and Bitstamp we see price discrepancies pretty often. It really depends on the overall Bitcoin volatility: the higher the volatility the higher the spreads between the exchanges. But check the prices right now (08/24/2015 21:55:25 EDT):
Bitfinex: 204.54 / 204.55
OKCoin: 201.13 / 201.27
Bitstamp: 204.29 / 204.48
As you can see there is a good opportunity right now between Bitfinex (short) and OKCoin (long) with a 1.62% spread. A word to the wise...
4. The spreadEntry and spreadExit point, how do you decide the value? Do you have any reference or analysis behind?
Good question and that's all the challenge:
SpreadEntry and
SpreadExit are set based on the historical relationship between the exchanges. If you use values closer to zero you will get more trades, but less profit on each trade. Also, as explained above if the Bitcoin volatility is very low you will have difficulties to get trades and might need to lower your values. The Bitcoin volatility is now at 3.51%. You can check it
here in realtime.
Note that I have some ideas to implement using dynamic spreads based on:
1. the short-term historical volatility
2. the fact that we want to let the profits run.
Stay tuned!