当前位置:网站首页>Quantitative investment traditional index investment decision vs Monte Carlo simulation method
Quantitative investment traditional index investment decision vs Monte Carlo simulation method
2022-06-13 00:55:00 【Your name is Yu yuezheng】
Preface
Management scale about 5000 Billion 、 Yield Once defeated buffett Of Renaissance fund , stay 2020 year 11 In June, it was revealed that its three products 10 month losses 20%!
For beginners of quantitative investment , What should we value Traditional indicators , Or something else Probability and statistics , or machine learning And more advanced methods ?
disclaimer
Nothing in this vision and analysis should be interpreted as investment advice , Past performance does not necessarily indicate future results .
Monte Carlo simulation VS Traditional multi index strategy
What is the prediction effect of Monte Carlo simulation method on stocks ?
The simulated stock is NYSE:GM,2020 year 1 month 1 Japan ~2020 year 12 month 24 Daily line data of the day
When we choose 5: 5 Training set of : Prediction set when

It can be seen that the fitting effect on the training set is very good , Next, let's look at the performance on the test set 
It can be seen that the trend of the test set is not well predicted . In order to further evaluate the effect of Monte Carlo simulation , We don't look at the actual price forecast , But just look at the direction , If the final price of the test range is greater than the final price of the training range , We define it as income , vice versa . When the predicted direction is consistent with the actual direction , We think the forecast is accurate 
And then we do it every 100 Statistical iterations 100~1000 The forecast of this time is shown in the figure above , It is found that the random effect is Failure Is far greater than Success The situation of .
When we choose 9: 1 Training set of : Prediction set when
You may feel that 5: 5 Training set of : The prediction set is not reliable , Maybe because the prediction set is too long . Then we'll have more training sets , The forecast set is smaller , Let's see if the situation is as expected 
The first is to show the situation on the training set , Because the training set is too long , The fitting effect is slightly poor 
See the performance on the prediction set , It is not as good as we think , On the contrary, the opposite trend has occurred 
every other 100 Statistical iterations 100~1000 The forecast of this time is shown in the figure above , Compared with the previous forecast, the situation has improved to some extent , But Monte Carlo simulation is a model that uses random numbers , Is the result really good ? You know, tossing a coin to judge whether it goes up or down is 50% The probability prediction is correct , However, the performance of Monte Carlo shows great uncertainty , For this result , Simple Monte Carlo simulation is not desirable .
Does Monte Carlo simulation really play such a role in the stock market ? This is really a good research topic . Do you need more data and more comprehensive analysis ? Consider the correlation with other stock prices ? Add correction model ?
Traditional index decision-making
So what is the effect of using traditional indicators to make decisions ? Or adopt 2020 year 1 month 1 Japan ~2020 year 12 month 24 Japanese NYSE:GM data
use BOLL and MACD Double index decision
First, put the trading effect picture directly , Each time is the total amount of purchase and sale , Regardless of the handling fee . According to the color habit of American stocks , Red in the candle chart is the opening price > Closing price , Green is the closing price > Opening price . Then the left side of the large column represents the buying point 、 The right side indicates the selling point , The red column is a losing trade , The green column is a profitable transaction 
The situation of each transaction and the final yield 
All indicators considered are plotted as follows 
Observe the back test results and find , Our decision to stop loss in time avoids 2020 year 3 The sharp fall in January , And seize the opportunity in the callback , Success makes a profit in the callback process 36.24%, Much higher than the stock in 2020 Year's increase .
In addition to A Stocks also have good performance , Last week, Baijiu stocks fell into the callback trend , The strategy did not choose to stop profit and sell Baijiu stocks , But choose to keep holding , As things stand , The choice is relatively correct .
With “000799.SZ Alcoholic liquor ” For example , The rest of the stocks can try for themselves 
disclaimer : Nothing in this vision and analysis should be interpreted as investment advice , Past performance does not necessarily indicate future results .
Code implementation of traditional strategy
For the above mentioned BOLL and MACD Combined policy code is too long , You can view it in GitHub Read and download https://github.com/ExileSaber/Quantify-Investments
In addition, for this strategy A Stocks also performed well , But this is not investment advice , Just introduce relevant strategies , And it should be noted that the back test results do not represent the effect of the firm offer
summary
Of course, the back test results do not mean that there will be a good performance in the future firm trading , But compared with Monte Carlo simulation, which has poor explanation , The traditional index decision-making is much better in explanation , Every point has a definition of buy and sell . What kind of model should be used 、 Strategy to do a good job in analysis depends on the investors' own decision
disclaimer : Nothing in this vision and analysis should be interpreted as investment advice , Past performance does not necessarily indicate future results .
边栏推荐
- People and gods are angry. Details of Tangshan "mass beating of women incident"
- 3623. Merge two ordered arrays
- Maybe we can figure out the essence of the Internet after the dust falls
- Kotlin 协程的作用域构建器 coroutineScope与runBlocking 与supervisorScope,协程同步运行,协程挂掉的时候其他协程如何不被挂掉。
- Binary tree - right view
- ImportError: cannot import name 'get_ora_doc' from partially initialized module
- Static analysis of malicious code
- kotlin 协程withContext切换线程
- ROS2之OpenCV人脸识别foxy~galactic~humble
- Hard (magnetic) disk (I)
猜你喜欢

Kotlin 协程挂起函数 suspend 关键字

How to solve the duplication problem when MySQL inserts data in batches?

硬(磁)盘(二)

Canvas game 2048 free map size

Breadth first search for node editor runtime traversal

pytorch和tensorflow有什么区别?

Assembly language learning

Development notes of Mongoose

三栏简约typecho主题Lanstar/蓝星typecho主题

三角波与三角波卷积
随机推荐
Penetration test summary
ROS2之OpenCV人脸识别foxy~galactic~humble
【SCA-CNN 解读】空间与通道注意力:Spatial and Channel-wise Attention
[buglist] serial port programming does not read data
Why is there always a space (63 or 2048 sectors) in front of the first partition when partitioning a disk
Blinker FAQs
什么是 Meebits?一个简短的解释
Mongodb array operation
Et5.0 value type generation
Android Weather
Zhouchuankai, Bank of Tianjin: from 0 to 1, my experience in implementing distributed databases
Influence of higher order poles on waveform
Binary tree - right view
[North Asia server data recovery] data recovery case of Hyper-V service paralysis caused by virtual machine file loss
[backtrader source code analysis 7] analysis of the functions for calculating mean value, variance and standard deviation in mathsupport in backtrader (with low gold content)
OceanBase 雄踞墨天轮2021年度中国数据库魔力象限领导者
Maybe we can figure out the essence of the Internet after the dust falls
Comparison of disk partition modes (MBR and GPT)
[JS component] create a custom horizontal and vertical scroll bar following the steam style
市值破万亿,连续三个月销量破10万,比亚迪会成为最强国产品牌?