** 2016/8/14: Added the result when the signals of the three methods are synthesized. ** ** ** 2016/8/14: Added win rate. ** **
Last time (I tried the common story of using Deep Learning to predict the Nikkei 225), the return of the Nikkei 225 stocks on the previous day I tried to predict the rise and fall of the Nikkei Stock Average the next day using. This time, for the time being, it is an operation back test edition, so I tried to simulate what would happen if it was actually operated using the predicted return.
As mentioned in the previous article, I am not responsible for any damages caused by actual operation using this method.
Originally, it is necessary to consider commissions, trading time, trading turnover, etc., but this time, we simply said, "Forecast at the closing price on the previous day, make a trading decision momentarily, and momentarily Nikkei 225. It makes a very unrealistic assumption that you can buy or sell. (Well, isn't it because the calculation is troublesome?)
The summary is as follows.
The previous result was as follows. I tried three methods: Random Forest, Multilayer Perceptron (MLP), and Convolutional Neural Network (CNN).
From an AUC perspective, the order is CNN> MLP> RF.
The backtest period will be daily from 2008 to the latest. The first is 1000, and each is indexed. (Left axis) It also shows the difference against the Nikkei 225 index. (Right axis)
CNN is the best model performance, so let's synthesize RF and MLP around this. As a conditional expression
signal = (CNN signal) & (RF signal|MLP signal)
It feels like. In other words, only if you say that the CNN goes up and that both of the other two models go up, you decide that the final signal goes up.
RF | MLP | CNN | Synthetic | Nikkei | |
---|---|---|---|---|---|
Annual return(%) | 5.6% | 8.1% | 9.2% | 11.7% | 1.5% |
Annual standard deviation(%) | 20.1% | 20.5% | 19.9% | 18.6% | 27.2% |
Risk return | 0.277 | 0.395 | 0.461 | 0.628 | 0.054 |
Cumulative win rate | 54% | 55% | 54% | 56% | 52% |
The result is synthetic> CNN> MLP> RF (in terms of risk / return). Even if the Nikkei average is Long Hold, it is a 52% win, so it seems that the rise and fall during this period is slightly closer to the uptrend. However, among them, all methods are superior to that, and 56% for synthesis is a fairly good number.
Recommended Posts