translation

This is an AI translated post.

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

Building a US Stock Auto Trading Program Version 2.0

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

  • In December 2021, we built a US stock auto trading program version 2.0, leveraging the system used in version 1.0 for quick development.
  • We built an automated trading system utilizing UiPath RPA, SQL Server Express, Telegram chatrooms, and more, setting it up to receive buy/sell notifications.
  • The auto trading system is currently operating normally, and we plan to add features for stock chart analysis and blog posting in the future.

It's been 2 years since I wrote the content below. For those of you who are curious about the results, please check out the retrospective post first.


In the previous post, I thought that I should create a second automatic trading program for US stocks.

The thought came to me at 12/19(Sun) morning, and I started preparing for it after having dinner that day.

Even though I had created the first program once and the base environment was set up, I was able to prepare quickly.

However, there were some trial and error processes, so I'm going to summarize the contents.


MVP Summary

I've summarized the features that must be prepared.

The first program was on a PC with poor performance, but luckily I was able to choose a better PC for the second one.


PC Specs

Intel(R) Core(TM) i5-4590 CPU @ 330GHz
8.0GB DDR3
SSD 240GB


[Securities Account]

Creating a securities account for overseas stock trading
Condition: You need to use Kiwoom Securities' Youngwoong Global (Currently, the automatic trading program is developed for Youngwoong Global)
Install and set up Youngwoong Global
Save and set up the certificate on the hard drive so that it can continue to run on this PC.
Log in to Youngwoong Global and set up some environment settings.
Investment funds transfer and exchange
I set the initial seed to 3 million won, and I exchanged $2,500 because the exchange rate is high.
I don't know if it's because the working time is Sunday, or if the exchange is not possible immediately after the transfer, but the exchange was only possible on Monday.
(3 million won appears in the available balance, but when I did it on Sunday, 3 million won did not appear in the exchange amount.)


[UiPath - RPA]

Install and set up UiPath Studio
After installing UiPath Studio, you need to set it up as a stand-alone & community version.
Import and set up the project from the first program
Import the project that is running on the first program and make it work.
(Change settings for DB, etc.)
Project execution test
Although I couldn't test the operation due to the logic that checks for a long time,
I confirmed that the imported project is running normally.
Scheduling setting
Set the project to run at 23:31 on Mon, Tue, Wed, Thu, and Fri.


[DB]

DB settings were essential because I made it so that the core settings of the investment methodology were handled through the DB.

Install and set up SQL Server Express
If I had set it up from scratch, I would have had to install it, but I didn't have to install it because the DB used by the first program was already there.
Create a database
I backed up the database and restored it with a different name, and deleted the data from the table.
I'm using a very simple table structure, but I'll summarize the related information later.
Setting settings
I decided to invest in the FNGU ETF, which has fallen a lot in the first program, starting with 3 million won - $2,500.
I set up a total of 30 tiers, and set both DOWN_RT and UP_RT to 1%.
This account will invest from FNGU tier 1 to -30%.
Although the investment principal is small, I divided $2,500 into 30 well. (Tier 1: $470, other tiers: $70)


I thought that I could run automatic trading with these preparations,

and I confirmed that it worked at 23:31 on 12/20 (Mon).

Of course, just like the first program, I need to do more settings to perform (1) stock chart analysis and (2) blog posting after execution.

However, I thought those parts were additional, so I'll prepare for the next step gradually because it's now working properly.

In fact, I should move on to the next step, but I made a telegram chat room and set it up so that I could receive notifications of automatic trading program start and buy/sell alerts.

Execution history of Version 2.0 on December 20th (Mon)


Next Step

Stock chart analysis
I install Python and set up the environment, copy the source code of the first program, and change the DB settings.
I also prepare the function for mosaic processing by copying the source code.
If the preparation is complete and it works properly, I set up the schedule. (6:10 AM)
Blog posting
I separate the blog account or add a category to the current blog, and change the posting settings of RPA.
I also import and set up the blog posting project and test its operation.
If the preparation is complete and it works properly, I set up the schedule. (6:20 AM)


Conclusion

This automatic trading program is customized for the investment methodology I use and set up, but

I'm going to prepare to share the installation files and create a guide document so that it can be easily installed and used.

If you are interested in automatic trading, please feel free to contact me via comments or email if you have any questions.

My email is on the top left. (ssjokelife@naver.com)

김진혁
(로또 사는 아빠) 살림 하는 엄마
아빠는 로또를 사면서 대박을 기원합니다. 엄마가 살림 하면서 얻은 정보를 공유합니다.
김진혁
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

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

Investment Methodology (Stocks) This article introduces a strategy for investing in US stock ETFs based on the infinite buying and seven-split methods. It details the investment process, including stock selection, investment amount allocation, buy/sell timing setting, and automated trad

April 20, 2024

🚀 Don't miss out on BOB's halving theme, Alex holders must participate [Bitcoin/Ethereum/Airdrop/NFT] SEPOWER, a Bitcoin Layer 2 project, is currently running an early deposit event where you can receive tokens in just one month. With OKX wallet, you can receive a 15% bonus and deposit various assets such as wBTC, USDT, and USDC. Alex holders can enjoy a
팀 세력, SEPOWER
팀 세력, SEPOWER
팀 세력, SEPOWER
팀 세력, SEPOWER
팀 세력, SEPOWER

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

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

🚀 [Coinbase Investment Reya Network] 2-Week Short-Term Stablecoin Deposit [Bitcoin/Ethereum/Airdrop/NFT] Reya Network is a 2-week short-term stablecoin deposit farming service that has received KRW 2.2 billion in investments from Coinbase, Wintermute, etc. Withdrawal is free, but points will not be awarded for early withdrawal. Puffdex is scheduled to launch
팀 세력, SEPOWER
팀 세력, SEPOWER
팀 세력, SEPOWER
팀 세력, SEPOWER
팀 세력, SEPOWER

April 24, 2024

How to invest in yourself as a marketer This article details the plan to obtain the 2nd grade of the Social Survey Analyst, SQLD, and the Business Management Instructor Marketing certification with the goal of becoming a marketing professional in 2024, including detailed study plans, exam sched
롱롱이
롱롱이
롱롱이
롱롱이
롱롱이

May 12, 2024

Connecting the dots and Steve Jobs' Stanford Commencement Speech? Minjun, 17, has established his own investment company and is pursuing his dreams by creating his personal homepage using Wix. Babe was impressed by Minjun's passion and decided to invest in his company. Babe also experienced Wix firsthand and realized th
ohtoeic-078
ohtoeic-078
ohtoeic-078
ohtoeic-078
ohtoeic-078

February 12, 2024