Design and development of a functional high-frequency trading algorithm

Gonzalez Corujo, Luis Adolfo and González Franco, Diego (2019). Design and development of a functional high-frequency trading algorithm. Proyecto Fin de Carrera / Trabajo Fin de Grado, E.T.S.I. de Sistemas Informáticos (UPM), Madrid.

Description

Title: Design and development of a functional high-frequency trading algorithm
Author/s:
  • Gonzalez Corujo, Luis Adolfo
  • González Franco, Diego
Contributor/s:
Item Type: Final Project
Degree: Grado en Ingeniería del Software
Date: July 2019
Subjects:
Freetext Keywords: Sistemas de Trading; Algoritmos genéticos
Faculty: E.T.S.I. de Sistemas Informáticos (UPM)
Department: Matemática Aplicada a las Tecnologías de la Información y las Comunicaciones
Creative Commons Licenses: Recognition - No derivative works - Non commercial

Full text

[thumbnail of TFG_LUIS_GONZALEZ_CORUJO.pdf]
Preview
PDF - Requires a PDF viewer, such as GSview, Xpdf or Adobe Acrobat Reader
Download (5MB) | Preview
[thumbnail of TFG_LUIS_GONZALEZ_CORUJO_ANEXOS.zip] Archive (ZIP) - Users in campus UPM only
Download (22kB)

Abstract

A lo largo de este proyecto, ha sido estudiado, desarrollado e implementado un sistema completamente funcional capaz de automatizar tareas de ‘Trading’ en el mercado de divisas Forex como son analizar los precios y gestionar las acciones abiertas. El núcleo del sistema es capaz de recibir una gran cantidad precios de mercado, analizarlos y determinar ante cada uno de estos precios la acción que debe ser llevada a cabo: comprar una acción o vender una previamente abierta. El algoritmo puede ser utilizado tanto para realizar pruebas por medio de una base de datos de precios histórica, como para comerciar en el mercado real conectándolo a una plataforma 'broker’. En mayor parte del desarrollo, nos hemos guiado por investigaciones llevadas a cabo durante varias décadas de estudio, las cuales culminaron en un algoritmo prueba de concepto llamado “The Alpha Engine”. Desde el principio, nuestro objetivo principal ha sido desarrollar un sistema similar a “The Alpha Engine” que pueda ser usado en el mundo real por cualquier usuario que así lo desee, así como introducir nuevos elementos de los que este modelo carece para así mejorar su eficiencia y funcionamiento. Durante los capítulos de esta memoria, se explican los desarrollos de la parte lógica del algoritmo: desde un nuevo método para modelar la línea de tiempo del mercado Forex hasta un sistema para controlar el riesgo que se asume en cada una de las acciones abiertas, pasando por la estrategia de ’trading’ y por el cálculo de indicador estadístico de la liquidez del mercado que controla la agresividad con la que el algoritmo invierte en función del conocimiento que se tiene del comportamiento reciente del mercado. Además, se explica cómo ha sido diseñada y definida una arquitectura con la que este algoritmo desarrollado podrá ser utilizado por cualquier usuario que únicamente disponga de una conexión a internet. Abstract: Throughout this project, a complete functional system capable of automating trading actions in the Forex market such as price analysis and order management has been studied, developed and implemented. This core of the system is able to receive a large amount of market prices, analyze them and determine before each of these new prices the action that has to be carried out: buy an order or sell an order previously bought. The algorithm can be used either to perform tests using a database of historical prices, or to trade live connecting to a broker platform. In much of the development, we have relied on research carried out over several decades of study, which culminated in a proof-of-concept algorithm called “The Alpha Engine”. From the beginning, our main objective has been to develop a similar system to “The Alpha Engine” that could be used in the real world by any user, and to introduce elements that this model lacks in order to improve its efficiency and operation. Throughout the chapters of this report, we explain the developments carried out in the logical module of the algorithm: from a new method to model the Forex market price series to a system to control the risk that is assumed in each of the open actions, explaining also the trading strategy and the computation of a statistical indicator of the market liquidity that manages the aggressiveness with which the algorithm invests, based on the knowledge of the recent behaviour of the market. In addition, we explain how the architecture of the system has been designed and defined for the system to be used by any user who has no more than an Internet connection.

More information

Item ID: 56088
DC Identifier: https://oa.upm.es/56088/
OAI Identifier: oai:oa.upm.es:56088
Deposited by: Biblioteca Universitaria Campus Sur
Deposited on: 05 Aug 2019 05:40
Last Modified: 02 Jun 2023 14:07
  • Logo InvestigaM (UPM)
  • Logo GEOUP4
  • Logo Open Access
  • Open Access
  • Logo Sherpa/Romeo
    Check whether the anglo-saxon journal in which you have published an article allows you to also publish it under open access.
  • Logo Dulcinea
    Check whether the spanish journal in which you have published an article allows you to also publish it under open access.
  • Logo de Recolecta
  • Logo del Observatorio I+D+i UPM
  • Logo de OpenCourseWare UPM