KMITL Innovation Expo 2025 Logo

Application of Machine Learning, Stochastic Process, and Game Theory in Short-Term Financial Asset Investment Strategies

Abstract

This project focuses on the study and development of a short-term investment framework via gold trading in the foreign exchange market. Machine learning techniques are applied to analyze and forecast pricing trends. Moreover, we develop the system using a stochastic process to determine optimal stop-loss points, with the aim of maximizing expected returns. Additionally, we apply game theory to guide the decision-making process regarding order holding or closure. The system is implemented and tested on the MetaTrader 5 (MT5) platform. This project outlined the clear process that includes data preparation, machine learning model training, probabilistic modeling of gold price movements, stop-loss strategy formulation, strategic decision modeling based on game theory, the development of an automated trading program, and backtesting to evaluate system performance.

Objective

การลงทุนระยะสั้น คือ การพยากรณ์ว่าราคาในอนาคตอันใกล้เพิ่มขึ้นหรือลดลงในปริมาณ เท่าไรและเก็งกำไรจากส่วนต่างของราคาที่จะเกิดขึ้น ยิ่งการพยากรณ์มีความแม่นยำมาก ก็จะยิ่งได้ ผลตอบแทนมากตาม ผู้วิจัยได้รับแรงบันดาลใจจากการศึกษาการลงทุนระยะสั้นในรูปแบบ Price Action ซึ่งตั้งอยู่ บนสมมติฐานที่ว่า ข้อมูลราคาในอดีตมีความเพียงพอในการทำนายแนวโน้มราคาในอนาคต โดยไม่ จำเป็นต้องใช้ตัวชี้วัดทางเทคนิค (indicator) เนื่องจากตัวชี้วัดเหล่านั้นล้วนแล้วแต่คำนวณมาจาก ข้อมูลราคาในอดีตเช่นกัน ด้วยเหตุนี้ ผู้วิจัยจึงมุ่งเน้นที่จะนำเทคโนโลยี Deep Learning มาใช้ในการ สร้างแบบจำลองที่สามารถเรียนรู้จากข้อมูลราคาในอดีตเพื่อทำการพยากรณ์แนวโน้มราคาตลาดใน อนาคต และนำผลลัพธ์ไปประยุกต์ใช้ในการกำหนดจุด take profit อย่างมีประสิทธิภาพ ทั้งนี้ การ เลือกใช้ Deep Learning มีพื้นฐานมาจากคุณสมบัติในการเรียนรู้และประมวลผลข้อมูลเชิงซ้อน รวมถึงความสามารถในการจับความสัมพันธ์เชิงลึกของข้อมูลที่ไม่สามารถมองเห็นได้ด้วยวิธีการทั่วไป นอกจากนั้น ผู้วิจัยยังได้รับแรงบันดาลใจจากการศึกษาแนวคิด Drunkard Walk ซึ่งได้ถูกในไปใช้หา ความน่าจะเป็นที่คนเมาจะเดินกลับถึงบ้านหรือเดินกลับไปที่สถานบันเทิงจากความน่าจะเป็นที่คนเมา จะเดินไปทางซ้ายหรือเดินไปทางขวาและการประยุกต์ใช้ Absorbing Markov Chain เพื่อวิเคราะห์ ความน่าจะเป็นของการเคลื่อนไหวของกราฟราคา โดยแนวคิดนี้สามารถนำมาใช้ในการคำนวณความ น่าจะเป็นที่ราคาจะเคลื่อนที่ไปถึงจุด take profit หรือ stop loss ซึ่งเป็นปัจจัยสำคัญในการกำหนด กลยุทธ์การลงทุน ผู้วิจัยจึงประยุกต์ใช้แนวคิดนี้ในการพัฒนาแบบจำลองที่สามารถคำนวณค่า ผลตอบแทนเฉลี่ยเพื่อช่วยในการกำหนดจุด stop loss ที่เหมาะสม ยิ่งไปกว่านั้น จากประสบการณ์ใน การเทรดจริง ผู้วิจัยได้พบเจอปัญหาในการตัดสินใจเมื่อคำสั่งเทรดยังคงเปิดอยู่และไม่สามารถประเมิน ได้ชัดเจนว่าควรปิดคำสั่งเทรดก่อน หรือรอให้ราคาถึงจุดที่ตั้งไว้ หากปิดคำสั่งก่อนและราคากลับไปถึง จุด stop loss การตัดสินใจนั้นถือว่าถูกต้อง แต่หากราคาถึงจุด take profit การตัดสินใจนั้นก็จะถือ ว่าผิดพลาด ด้วยเหตุนี้ ผู้วิจัยจึงเลือกนำแนวคิดจากทฤษฎีเกม (Game Theory) มาช่วยในการวางกลยุทธ์ การตัดสินใจที่เหมาะสม โดยใช้กลยุทธ์แบบผสม (Mixed Strategy) และการวิเคราะห์การแจกแจง ความน่าจะเป็นของกราฟราคา เพื่อให้สามารถตัดสินใจได้อย่างมีเหตุผลและมีประสิทธิภาพสูงสุด

Other Innovations

Design Public Park Project : Saint Chon College Campus Park

คณะเทคโนโลยีการเกษตร

Design Public Park Project : Saint Chon College Campus Park

Expanding from a public park design project to a campus design on an area of ​​over 50 rai in Ang Sila Subdistrict, Mueang District, Chonburi Province, to serve as both an educational institution and a place for relaxation and learning for the surrounding people.

Read more
Ginbanirose

คณะอุตสาหกรรมอาหาร

Ginbanirose

The Ginbanirose project aims to develop herbal extracts for alleviating menstrual pain using key ingredients: roselle, banana inflorescence, and ginger. These ingredients contain bioactive compounds with anti-inflammatory, antioxidant, and pain-relieving properties. The extracts are enhanced through liposome encapsulation technology, which improves absorption and stability. The production process involves herbal extraction, freeze-drying, and liposome formulation using lecithin and stabilizers. Experimental results demonstrate high phenolic content and antioxidant activity via the DPPH method. Ginbanirose addresses women’s quality of life concerns while offering significant business opportunities in the rapidly growing herbal market, particularly in the Asia-Pacific region.

Read more
Medical Delivery Drone

คณะวิศวกรรมศาสตร์

Medical Delivery Drone

One of the most important aspects of responding to a medical case is the response time. In general, most fatalities are due to the patient not being able to reach the hands of the doctor in time. This also includes the arrival of medical equipment to the scene. The human brain will start to degrade in function after 3 minutes of oxygen starvation which conventional road transportation method first responders presently use is usually unable to reach the site in this golden 3 minutes, resulting in fatalities during transport or before the arrival of first responders at the scene. Therefore, medical equipment transport by fully autonomous aircraft is explored. This is done through drone deliveries which is much quicker than road methods as the equipment could be flown straight to the site as it is not affected by traffic, road conditions, and navigation. In this project, we will explore an aerial delivery system for medical equipment such as Automatic External Defibrillators (AEDs), First aid equipment, and other small requested medical devices. This will be done through a DJI drone platform and their SDK application. The main goal for this project is to decrease the response time by using an autonomous aerial drone to deliver medical equipment.

Read more