Kyuho's personal homepage

AI Stock Trading Bot

01/2021 ~ 04/2021

The world is in the craze for stocks right now.

As an engineer, I wondered whether an engineering approach can solve the stock market.

Since the stock market is very complicated, A.I. can be a good candidate for solving the market.
However, the stock market is also highly volatile, so even A.I. would not be able to predict the market price precisely. 

Therefore, I designed A.I. that recommends 4 tickers that have the highest probability to rise. 
For good performances, structure and training data are the most important factors of all.
Below is a structure of my A.I.

Figure 1. The structure of A.I.

The purposes of design are listed below:

Low-quality train data, which does not have any pattern in it, produce malfunctioning A.I.
Good train data is required for high performance.
Therefore, I only used the top 100 volume tickers data for training.

Specific conditions for training are listed below:

After training successfully, I tested the model with actual trading.
However, I could not buy and sell stock manually since I had a hectic research schedule. 
So I developed an auto-trading program with CreonPlus API and Python.
This program automatically trades stocks and reports recommended tickers and profits by Slack.
 

Figure 2. Slack messages from the auto-trading bot

After 27 days
of trading, I got about a 3.7% profit margin with this A.I. trading bot.