Introduction of the strategy
The strategy was shared at:
https://www.fmz.com/strategy/1088
The strategy is my main strategy since I started with digital currency. After continuous improvement and modification, it has become more complicated, but the main idea has not changed. The shared version is the original version without obvious bugs. It is the simplest and clearest. There is no position management. Every transaction is full, and there is no restart, but it is enough to explain the problem.
The strategy ran from August 2014 to the beginning of this year, when the exchange charges. During the period, the operation was quite good, and the time of loss was very little. The capital has increased from 200 yuan to 80 Bitcoin. The specific process can be seen in The way of automated transaction of virtual currency series of articles in Xiaocao's Sina blog.
The following figure is the return curve of the OKcoin platform that I specifically counted. The initial capital is 1000 yuan. You can see that the initial capital has increased steadily. The middle line is that my strategy has stopped. Later, because the strategy has been changed to a currency-earning strategy, the returns in RMB fluctuates sharply. The specific process is described in the article of the two-year summary of strategy trading.
The following chart shows the curve of total assets converted to currency:
Why share this strategy?
- After the exchange charged, almost all high-frequency strategies were killed, and mine is no exception. But changing the strategy may still work, you can study it.
- I haven't shared anything for a long time. I have long wanted to write this article.
- Communicate and learn with you all.
Principle of strategy
The principle of this strategy is very simple. It can be understood as a quasi-high frequency market making strategy. You may want to hit people after reading it, can it make money?! At that time, almost everyone could write it. I didn't expect it to be so effective at the beginning. It can be seen that we should pay attention to practice as soon as we have ideas in mind. In 2014, when Bitcoin robots first emerged, it was too easy to write money-making strategies.
Like all high-frequency strategies, this strategy is also based on orderbook. The figure below shows the order distribution of a typical Bitcoin exchange:
We can see the buying order on the left, showing the number of orders at different prices, and on the right side is the selling order. It can be imagined that if someone wants to buy Bitcoin, if he doesn't want to pend the order and wait, he can choose to take the order only. If he has a large number of orders, it will cause a large number of transactions to sell the order and list, which will impact the price. However, this impact will not continue. Some people want to take the order and sell, and the price will probably recover in a very short time. Conversely, it is similar to understanding that someone wants to sell coins.
Take the pending order in the figure as an example. If you want to buy 5 coins directly, the price will reach 10377. At this time, if someone wants to sell 5 coins directly, the price will reach 10348. The price difference is the profit margin. The strategy will pend an order at a price slightly lower than 10377, such as 10376.99, and buy at a price slightly higher than 10348, such as 10348.01. This is because if the situation just happened, it will earn the difference obviously. Although it will not be so perfect every time, the chances of making money are actually incredibly high given the probabilities.
Explain the specific operation with the parameters of the current strategy. This parameter is of course not available, just for illustration. It will look up for a price with an accumulated amount of 8 coins, here is 10377, then the selling price at this time is the price minus 0.01 (the amount can be random). Similarly, it will look down for an accumulated amount of 8 coins, here is 10348, then the selling price at this time is 10348.01, and the difference between the buying and selling price at this time is 10376.99-10348.01=28.98, which is greater than the preset price difference of 1.5, so it will pend an order to wait for the transaction with these two prices, if the price difference is less than 1.5, it will also find a price to pend an order, such as the opening price plus or minus 10, and wait for pick up (it is more appropriate to continue to look down the depth of the follow-through).
In addition, it is noted that this strategy is only related to the current deep pending orders and does not care about the historical market and its own historical transaction. The strategy also has no concept of single loss. In fact, the winning rate of a single transaction is very high.
Further explanation
- What should I do if I run out of money or currency?
This situation is very common when I have less money. Most of the time, I only pend one side of the order, but it is not a big problem. In fact, we can add the logic of balancing currency and money, but it is inevitable to lose in the process of balance. After all, every transaction is a matter of probability. I choose to wait for the transaction on one side. Of course, this also wastes the transaction opportunity on the other side.
- What should I do if I run out of money or currency?
- How are positions managed?
At the beginning, they were all in full position to buy and sell. Later, they were divided into different groups according to different parameters, and they would not be completely closed at one time.
- How are positions managed?
- Is there stop-loss?
The strategy has a complete logic of buying and selling orders. I think there is no need to stop loss (which can be discussed), and there is also the preference of probability. The transaction is an opportunity, and the stop loss is a pity.
- Is there stop-loss?
- How to adjust to the strategy of earning currency?
At this time, the parameters are symmetrical, that is, the cumulative selling orders of 8 coins up and the cumulative buying orders of 8 coins down are slightly unbalanced. For example, the cumulative selling orders of 15 coins up make the selling opportunities more difficult, and there is a greater chance that they will be returned at a lower price, which will make currency, and in turn make money. In fact, the early strategy is so effective that both currency and money are increased.
- How to adjust to the strategy of earning currency?
- How to deal with floating losses?
Of course, there will be losses in a single transaction, such as the rise of the currency price after selling and the fall of the currency price after buying. Such floating losses do not need to be dealt with, because the transactions are frequent, and it is normal for thousands of times every day. Floating losses are normal, as long as the probability of profit is greater.
- How to deal with floating losses?
- How to prevent black swans?
Bitcoin has a lot of Black Swan time, sometimes it just goes down all the way, and there is no chance to sell it. This situation should not be too worried, because the Black Swan time often brings high volatility, and the strategy makes exactly this part of the money, and the loss can also be earned back quickly.
- How to prevent black swans?
To be continued...