translation

This is an AI translated post.

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

Program Auto Trading Review (Grid Trading Method) 2 Years Already!

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

  • Based on two years of experience in stock auto trading, I reviewed the process of developing an automated trading program using the grid trading method and UiPath, and analyzed its advantages and disadvantages.
  • Due to the lack of a US stock API for Kiwoom Securities, I considered using the Korea Investment & Securities API and open chat room programs, but chose to develop my own and have been operating automated trading for two years.
  • Program automated trading allowed me to focus less on investing and concentrate on my daily life, but the limited pre-market trading functionality and worsening market conditions led to unsatisfactory investment performance.

Getting Started


It's been 2 years since I started investing in stocks properly. Those of you who are investing in stocks at the time of writing this article already know the answer to this. The stock market is changing rapidly, and it's going in a different direction than I thought. Of course, these past 2 years are a situation where I can write a review and end it here. However, if I'm still not performing well in another 2 years, I hope this will be a reference for me. I'm going to write a review of my automated trading program.


Choosing a Stock Trading Methodology

There are many stock investment methodologies. Since there are always stories about results, the more successful other methodologies are, the more I feel like the methodology I chose is not performing well. I've been watching the open chat room for 2 years, and there are endless ideas. It's a natural process for better methods to emerge as a result of solutions to difficult situations, but watching that process made me think again about the methodology I originally chose.


You need to reach a conclusion and make a decision to maintain your behavior. I think 2 years of investment is too short a period to evaluate. So I think I'll stick with the grid trading method until the end of the year. (I think I'll work harder to keep it until the end of 2024.)


Choosing a Stock Automated Trading Program

Since I mainly use Kiwoom Securities, it does not provide an API for US stock trading. It wasn't offered 2 years ago either, and it still isn't offered. Of course, even if it were offered, I wouldn't have succeeded with stocks, but I still regret that it wouldn't have moved as accurately as I wanted. As I mentioned earlier, please make sure that I don't mention Kiwoom's API again in 2 years. 😂

Let's get back on track. Anyway, I want to trade US stocks, but Kiwoom doesn't provide an API, so I had to trade during US market hours. The time difference is terrible, but there's nothing I can do. I have to match it. Or you could use a securities firm that provides an API. Korea Investment & Securities provided an API 2 years ago, but I didn't choose it for various reasons.

Reasons why I didn't choose Korea Investment & Securities

1. I felt like Kiwoom was about to create a US stock API.

2. Since the trading method I chose was grid trading, buying and selling frequently in scalping is important. This made commission a very important factor in my decision. Kiwoom is 0.07%, but I remember Hantoo being higher. I wonder if it's still the same. And since Kiwoom still doesn't provide an API for the US, I need to review Hantoo again.
3. This seems like the biggest reason, but I've already exhausted my willpower in creating an automated trading logic with the UiPath tool. I think the biggest reason was that I didn't have the will to create Hantoo. I regret my weakness.


The second method would be to get on the shoulders of giants who are already ahead of the game. I'm still “stalking” the open chat room, and there are amazing people around us who donate their talents. Some people share programs created in Python, and others share programs created in AutoHotkey. If you use this program well, I think it's the easiest way to automate stock trading. In addition, there are people in the open chat room who chose a similar trading method 2 years ago but are steadily improving their trading method, so I think there's an opportunity to choose a more upgraded method. This is not a method I didn't consider. And I actually got the program and ran it to get a lot of ideas. Thank you again for 2 years. But I wanted to set up the functions I had in mind and collect price data for the stocks I chose.

So, in the end, I used the UiPath tool, which I was familiar with at the time, to create a trading program. I attached a DB, created charts from the data, and even wrote blog posts. At the time, I thought I needed to invest well to get rich, but it seems more important to actually do what I wanted to do. Since I created it myself, I'm still maintaining the basic framework of the trading method I first applied, but I was able to test various methods for improving the compound effect or setting fine-tuned application rules. And I shouldn't have, but it made it easier to tie my parents' money into investments. Unfilial sons cry.


Among the various attempts I made in between, there is a function that invests in the pre-market. However, since it's not the main market, I have to trade at a fixed price, which often results in unusual situations where the trade is not executed. I find out the results the next day, which means the program didn't work properly. This could result in a loss or a profit, but it felt like more losses were happening, which might be a matter of feeling. I blame Kiwoom again, but since it's not trading through an API, it's more likely to have inaccuracies. Of course, if I had made it work more accurately, I wouldn't have to blame Kiwoom, but it would be nice if they provided an API quickly.

Anyway, I'm going to use the program I made a little more. As mentioned earlier, I plan to continue investing with the grid trading method until 2024, and if Kiwoom doesn't provide an API, I'll have to use it more to continue investing. (However, I've turned off the pre-market trading feature again.)


A Quick Wrap-Up

Did I think I should write about how the past 2 years were? Recently, it's been declining again, so I've almost run out of tiers, and trading has stopped, so I've lost the fun of seeing the results every morning. Everything seems similar. When things are going well, you don't look back, but when things start going wrong, you start looking back. I'm in that situation, so I thought I should write a retrospective. I talked about why I did it back then and how I'm going to do it in the future. If you have a great method, don't keep it to yourself, let me know. My ears are pretty thin.

The market situation wasn't good, and my program had a lot of shortcomings, but automated trading still has a big advantage. The biggest advantage seems to be that it allows me to keep investing and forget about it. It's been 2 years, a long time or a short time, but except for when I first created the program and set it up, I don't think I paid much attention to stocks. So I'd like to give a high score to automated trading because it allowed me to fill my real life with more rewarding things.

I wish you all successful investments. Please wish me the same.
And if you are curious about automated trading, feel free to ask anytime. I'll do my best to help. 😊
Thank you.


Report Card

I think I need to leave the current report card. To my future self in 2 years...

김진혁
(로또 사는 아빠) 살림 하는 엄마
아빠는 로또를 사면서 대박을 기원합니다. 엄마가 살림 하면서 얻은 정보를 공유합니다.
김진혁
Understanding the Risks of x3 Leverage Investing: Volatility Decay This blog post chronicles the pursuit of wealth through 3x leverage investing, alongside the anxieties surrounding volatility decay and the possibility of investment failure. It also documents the efforts to build an automated investment system.

April 21, 2024

The Basic Structure of Stock Auto Trading (Updating...) This article provides a detailed explanation of the stock auto trading program development process, step by step, covering everything from account opening to development environment setup, API integration, UI design, core logic implementation, operation,

April 22, 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

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

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

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

Seth Klarman and the Fed say the good days for stock investing are over A recent analysis suggests that it will be difficult for the real return on U.S. equities to exceed 2% in the future. Unlike the past 30 years, when the United States benefited from low interest rates and corporate tax rates, there is little chance of int
고집스런가치투자
고집스런가치투자
고집스런가치투자
고집스런가치투자

April 3, 2024

Where Individual Investors Have an Advantage Over Private Equity: Cash Can Be Used As Quickly As Possible, and Not All of It Needs to Be Used Private Equity tends to invest fund capital quickly to achieve high returns, which can lead to reckless deals. Especially in the case of Blind Funds, where the investment targets are not determined, quick investment is even more important, and the rush to
고집스런가치투자
고집스런가치투자
고집스런가치투자
고집스런가치투자

April 3, 2024