Digital currency OTC business Python automatic transaction
method 1
the previous data capture and analysis may have been written in Python, so this is the last step of the trading instruction interface. For retail investors in stocks, the normal way is for securities companies like Huabao, Guoxin and Xingye who are willing to give the interface, but it seems that they are only given the right when the account opening fee is very high. Moreover, there are only C + + interfaces like lts and CTP, and you need to package them without Python version
method 2
software like wind also has a direct interface to support some securities companies, but it's also expensive, and it's necessary in a few years
{rrrrrrr}
method 3
mouse and keyboard simulation method is very complex, which is to simulate the keyboard and mouse to operate some software, such as securities trading software and great wisdom
method 4
is to find and change the underlying code of the trading instructions of these software. However, under the T + 1 rule, the importance of prediction accuracy is higher than the timeliness of the transaction. It's good to spend time on data analysis, and the transaction can be completed manually
http://www.supervisord.org/
the following method is to buy up but not down, and avoid being covered. The disadvantages are that the handling charge is relatively high, but you can have a complete bull market and bear market will not be covered
use Python to get the stock price, such as tushare. If you find that the stock price is higher than the market (2:30 to 2:50), you can buy and hold it for one day, and don't buy it on the day when it falls. You can use probability theory to hold 5, 10 or 20 stocks at the same time according to the funds, so you don't fear the impact of the market suspension, and theoretically you can outperform the market. Advantages: avoid human impulse, disadvantages, high handling charges
another way is to operate ETF, such as market 50ETF, etf300, small and medium-sized board ETF, gem ETF. Judge that ETF at 2.30 on the same day, buy that one, buy the one with the biggest increase, don't buy anything, hold it for one day, and judge the next morning, and sell it if it falls by more than 2%. Advantages: not stepping on land mines, disadvantages: up with the market, I recommend this method, peripheral risk is relatively small
I have specific Python programs, which are more complex than the above, including stop loss, stop win, fund management, monitoring management. I use them in the firm offer, and the automatic order has also been solved
in my opinion, the success or failure of a program lies not in one day's success, but in the long-term stability of making money. For example, if it runs for ten years, too much data analysis is meaningless, because predicting the future is always a matter of probability, which is not 100% certain. If your program can beat the market many times over a long period of time, your program will tend to the large number theorem
otherwise, a temporary fallback will stop the program from executing automatically, and you will not be able to approach the stable probability in the large number theorem
if there is a program that can be 99% sure, it is basically an analysis of the insider trading data. Like Xu x, it should get the insider trading every time it takes a big position in a stock, so it doesn't need any program to trade
Buffett's trading mode is actually a kind of insider trading, because he relies on external analysis and field investigation. It is estimated that this is a means to find insider trading. Now that it becomes bigger, the effect will not work, the income will decline, and the U.S. economy will also decline. Therefore, bafit's future must be bleak, because the pool of insider trading is limited, It's not easy to operate because of the large amount of funds
if Warren Buffett was born in the Soviet Union, India, Japan and other countries, he may be begging on the street. The economic environment and tendency of the United States after World War II have created him, not the stock market technology. So Buffett disdains proceral trading
Warren Buffett and many American stock gods are actually caused by the deviation of the survivors. Where is the stock god of the Soviet Union? Why not one“ Silent data "and" the dead can't speak ")
I think it must be the program, not the human, that can really become the stock god in the future, because a good program strategy can be used for a lifetime to achieve long-term stable growth. Of course, the premise is that the social and economic environment is stable, there won't be similar turmoil in the Soviet Union, and there won't be Japanese style hyperinflation (a little worried about currency m2)
too many stocks make investors immerse themselves in the game of stock selection every day. Stock selection creates the market software of securities companies. In fact, a lot of data are useless. The key is to carry out the operation method forever in order to tend to the stable probability. Otherwise, one method will be changed today, another tomorrow, according to KDJ, MACD tomorrow, boll the day after tomorrow, DDX the day after tomorrow, Big day after tomorrow according to the self index, multi condition stock selection, the last money to pay fees or stop loss is not timely locked up. At this time, the purpose of brokerage commission is also achieved, the annual brokerage commission is higher than the stock market dividend. No matter how the market is, as long as we invite more stock reviewers, there will always be a right direction. If we play a probability game and let everyone trade frequently, the income of securities companies will only increase but not decrease. So don't believe in stock reviews. What you play is a game of probability, just like predicting the pros and cons of a coin. Ten stock reviewers must have a god stock review that can predict correctly three times. You believe this God stock review, the back may be three times are not allowed, ha ha. So securities companies and market software will always pop up all kinds of news or comments at the closing or lunch break. In fact, this kind of thing has no value of a cent. It may have been written for a long time that the rising argument is mole a, the falling argument is template B, and the flat market argument is template C. just fill in the data of the day. They are all eight part essays and are all behind the scenes. The same event is said to be a reason for rising in the morning and a reason for falling in the afternoon
after testing, the key of program strategy lies in stable execution, long-term stable execution, long-term stable execution, and saying important things three times
the weakness that human nature can't overcome is execution. Primary school students know how to make progress every day. How many people in the world can do it? It's even more difficult to carry out it steadily for decades, just like reciting English words. Theoretically, one hundred words a day can make ten thousand words in a hundred days. But ten or twenty years later, you may still be less than three thousand words
the purpose of using the program is to implement 100% in place without discount, and truly overcome the weakness of human nature, which has nothing to do with T + 1
in addition, recing the handling charge can also make your funds live longer, such as changing the above daily model to weekly or monthly model.