Ai takes you to play the stock project (V1.0) closed beta instructions

Ai takes you to play stock V1.0

foreword

Although this project calls Ai to take you to play stocks, but now the 1.0 project has not added Ai, but you can play stocks by yourself, we provide you with a companion to play ———— "random decision-making computer", You can see if you can play stocks and win our random algorithm. This article will introduce how to obtain our software, how to run it under the corresponding system, and the specific gameplay of the software.

If you want to build our software from source code, you can read my other blog, and I will open source related codes later

My stock project environment configuration process record

Software download and run

download

Click the link below to enter Baidu Netdisk to download (Alibaba Cloud Disk is under maintenance and there is no way to share it)
software download address
Here I provide two versions of the software for window10 and ubuntu20, download the software according to your own system (it is recommended to run on the corresponding system Software)
insert image description here
In my preliminary test, the windows10 version can also run on windows11, but there is a problem with the font display; if the ubuntu20 version runs on ubuntu18, it needs to deal with the library problem, which is not very recommended

Run
to download and decompress and get two files as shown in the picture (windows version)
insert image description here
(Ubuntu version)
insert image description here

Here MyAPP.exe is our program, Stock_my.db is our database, because this software is a local version, so all your operation information will be in this database, you can also take a look at the data through the sqlite browser .

Run under Windows, just click .exe

Run under linux, open the terminal under this folder, and enter in the terminal

./MyAPP

Software interface and basic gameplay

Here take windows as an example (linux is basically the same)

After entering the software, we can see such an interface

insert image description here
Here you directly enter the account number and password on the interface (numbers and English are supported, you can write whatever you want, don’t be too outrageous), register, and you can use this account to log in after successful registration. Of course, you can also enter the corresponding account number and password to log out.

There is an account number in the database by default: 123 Password: 123 You can log in to see where he is playing

After successfully logging in to the main interface
, you can enter the main interface. In the initial state, you can see the situation of the three stocks in the past 300 days, the current game time (March 14, 2007), the stock situation of the day and your initial capital 150w, then you will start your stock life based on these, and try to see if you can reach the pinnacle of life through stock trading.
insert image description here
Here you can change the past data of the stock you want to view by switching the display period in the lower right corner. It is recommended to adjust the display period to within 30 days before automatic update, so that the curve changes will appear continuous
insert image description here
insert image description here

Let's focus on the operating area

insert image description here
The overall logic of the game is that you can buy and sell these three stocks every day. The game time refresh can be updated through the "Update
" button . Each time you click, the game time advances by one day. Of course, you can also check the automatic update, select the corresponding refresh frequency (the default period is 1s), and the game will automatically update the progress.

For stock operations,
you can enter the operation amount in the operation area (one lot as the unit, one lot = 100 shares), and then click the corresponding operation 'buy' or 'sell', of course, your operation at this time is only temporary ( At this time, your estimated total assets will estimate the capital change of your operation based on the stock price of the day, and the font color of the corresponding box will turn blue, so you can check whether the amount of stocks you bought is reasonable), or you can cancel button to undo the operation on the corresponding stock.

insert image description here

After clicking update, your operation will take effect, the font color will change, and the current total assets will change, so you have successfully completed the stock operation for the day. If you are careful, you may find that the current total assets are not the same as the estimated total assets. This is because our game logic is that the operations you perform today will take effect the next day, that is, the stock price of the next day will be used to calculate your The changes in funds brought about by the operation, does this add a bit of fun to guessing? The estimated total assets are the changes in funds after your operation at yesterday's price, and compare the size of the two. You can see from the side whether the timing of your operation is right.
insert image description here
Of course, don’t forget that you still have an accompanying player RAND, maybe after a few updates you will find that the current total funds under random play have changed, that is, he has carried out stock trading operations. At this time, you can press
insert image description here
" Click the "Fund Comparison" button, and check in the column of estimated total assets. If you all clear your positions at this time, who will have more assets? It will make a little more money than the random algorithm
insert image description here

conclusion

OK, the above is the basic introduction of Ai to take you to play the stock V1.0 software. Welcome everyone to conduct internal testing. If you have any questions or bugs, just raise them in the comment area. Thank you for your support!

Guess you like

Origin blog.csdn.net/qin_liang/article/details/127385906