![translation](https://cdn.durumis.com/common/trans.png)
This is an AI translated post.
The Basic Structure of Stock Auto Trading (Updating...)
- Writing language: Korean
- •
-
Base country: All countries
- •
- Information Technology
Select Language
Summarized by durumis AI
- This article outlines a step-by-step plan for developing a stock auto trading program. It covers account opening, API application, programming language selection, account management, basic functionality implementation, UI design, core logic implementation, testing, automation, and operation in detail.
- This article emphasizes the importance of setting investment strategies, such as stock selection, trading methods, and trading conditions, and maintaining the right mindset during the operation stage. It suggests that rather than focusing on profit generation through automated trading, it's more crucial to cultivate consistency and reflection in investing itself.
- The article shares the author's experience of facing challenges in 2022 while achieving profitability recently. It highlights the importance of recognizing the uncertainty of investments and maintaining a firm resolve to continue investing consistently.
It feels like this is becoming a series. This time, I'm going to summarize the development I've considered for automatic stock trading. (This is a simple list for the purpose of organization, so it's subject to change at any time.) No matter which brokerage company you develop it for or what trading method you apply, the basic mechanism should be similar. Once these basic functions work well, I think you can create a good automatic stock trading program by implementing functions specific to a brokerage company or filling in any functional gaps.
- Preparing the development environment
- Account opening
- HTS, MTS, api related installation
- api application
- Mock investment application
- Overseas securities trading application
- Programming language selection - python
- Development
- Account
- Login (real / mock)
- Setting management
- (If necessary) Token management
- Basic function implementation (domestic / overseas)
- Account inquiry
- Available balance
- Balance
- Basic inquiry
- By stock - Current price, chart data inquiry
- Real-time inquiry
- Execution price
- Quote
- Execution
- Trading
- Buy / Sell
- Correction / Cancellation
- Order execution
- Unfilled order
- Report (notification)
- Period profit and loss
- Messenger notification
- UI
- Library selection - qt5
- Component
- Table (grid)
- Combo box
- Radio button
- Button
- Other utilities
- Time zone - Time related to overseas stock trading / Korean time - Daylight saving time
- Log
- Information storage - File, DB
- Account inquiry
- Core logic implementation
- Stock selection
- How to select stocks to monitor
- Trading method
- Whether to trade in installments
- Trading conditions
- Buy / Sell conditions
- Stock selection
- Account
- Operation
- Test
- Simulation (Mock investment)
- Automation
- PC (or server) setup
- Prayer / Wish
- Feedback / Detailed logic adjustment
- Test
By following these steps, you can create and operate an automatic stock trading program. Sometimes, some items may be omitted, and sometimes, items that need to be developed intensively may appear, but I think it will be done within this framework.
May it not make me overjoyed or disheartened, whether it rises or falls.
The important thing is that you have chosen stock investment as your investment method, and your primary goal should be to make a profit. (We should make sure that automatic trading is not the goal. Automatic trading is merely a means to an end.) The trading method I have chosen has recently been making profits, but looking at the results alone, 2022 was really bleak. Nevertheless, it's the methodology I chose, so I just run it. Also, recently, I've been making profits beyond the recovery of my principal, but it's still not really a happy event. It's just supposed to be like that. So, when it comes to the operational stage, I hope I can make a profit with prayer and wishes, but I want my mind to be "unmoved by gains or losses". I hope you all can continue to invest with a strong mind.