translation

This is an AI translated post.

(로또 사는 아빠) 살림 하는 엄마

The Basic Structure of Stock Auto Trading (Updating...)

Select Language

  • English
  • 汉语
  • Español
  • Bahasa Indonesia
  • Português
  • Русский
  • 日本語
  • 한국어
  • Deutsch
  • Français
  • Italiano
  • Türkçe
  • Tiếng Việt
  • ไทย
  • Polski
  • Nederlands
  • हिन्दी
  • Magyar

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
    • Core logic implementation
      • Stock selection
        • How to select stocks to monitor
      • Trading method
        • Whether to trade in installments
      • Trading conditions
        • Buy / Sell conditions
  • Operation
    • Test
      • Simulation (Mock investment)
    • Automation
      • PC (or server) setup
    • Prayer / Wish
    • Feedback / Detailed logic adjustment

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.

김진혁
(로또 사는 아빠) 살림 하는 엄마
아빠는 로또를 사면서 대박을 기원합니다. 엄마가 살림 하면서 얻은 정보를 공유합니다.
김진혁
Program Auto Trading Review (Grid Trading Method) 2 Years Already! Based on my experience of using stock auto trading programs for two years, I will share the grid trading method, the process of building an automated trading system using the UiPath tool, its advantages and disadvantages, and my future plans. This include

April 21, 2024

Building a US Stock Auto Trading Program Version 2.0 This blog post details the process of building US stock auto trading program version 2.0, utilizing UiPath RPA, SQL Server, Telegram chatrooms, and more to build an automated trading system. Building upon the experience gained from version 1.0, we present

April 20, 2024

A record of the development trials and tribulations of Korea Investment & Securities API This blog post is for developers who want to create an automated trading program using Korea Investment & Securities API. It introduces the difficulties encountered in the development process, such as account opening, unsupported mock trading, and Websock

April 23, 2024

Stock Stop-Loss and Averaging Down This guide provides a practical guide to stop-loss and averaging down methods to minimize losses and maximize profits in stock investments. It presents strategies for setting stop-loss levels based on the investment amount and proportion, and maximizing p
Cherry Bee
Cherry Bee
Cherry Bee
Cherry Bee

June 22, 2024

Why You Should Approach Investment with a Probabilistic Mindset: You’ll Never Know the Exact Cause of Investment Outcomes Investment outcomes are significantly influenced by luck, not just skill, and it is impossible to determine the exact cause. Therefore, investment should be approached with a probabilistic mindset, fighting as much as possible in favorable situations and
고집스런가치투자
고집스런가치투자
고집스런가치투자
고집스런가치투자

April 3, 2024

3 Things to Tell a First-Time Individual Investor This is advice for individual investors who are starting to invest in stocks, focusing on value investing strategy and a positive mindset. Value investing is a strategy that finds the probability that the market will be wrong in the short term, buys it, a
고집스런가치투자
고집스런가치투자
고집스런가치투자
고집스런가치투자

April 3, 2024

Why the US stock market has been the only one rising for the past 10 years It is a common mistake for individual investors to think that investing in the stock market of a country with high economic growth will result in high returns. Economic growth does not directly affect stock market returns, and various factors such as corp
고집스런가치투자
고집스런가치투자
고집스런가치투자
고집스런가치투자

April 3, 2024

How to Increase Your Investment Win Rate: 1) Don’t Get Caught Up in the Majority Opinion, 2) Be Strict with the Results To increase your investment success rate, you shouldn’t get caught up in the majority opinion, and you need to be strict with the results. Through humility about success and a cold analysis of failure, you can improve your investment skills.
고집스런가치투자
고집스런가치투자
고집스런가치투자
고집스런가치투자

April 3, 2024

Easy and safe US stocks US stocks offer safe and steady growth, and are an honest market that operates according to market principles without the intervention of big players. By purchasing good US stocks at a low price and holding them for life, you can generate stable returns t
eskwon
eskwon
eskwon
eskwon
eskwon

February 7, 2024