Skip to main content

Introduction

Recently, during a discussion with friends, we expressed interest in automating trading using brokerage APIs.

Coincidentally, we also wanted to apply deep learning models to practical financial trading, thus initiating this project.

We then consulted ChatGPT for a project name suggestion, and it proposed AutoTraderX. The rationale behind it was:

  • 'Auto' signifies automation, 'Trader' denotes trading, and 'X' adds a touch of mystery. (Really?)

Who asked for the unnecessary mysterious vibes?

Nevertheless, appreciating its sincerity, we reluctantly accepted. (~ Actually, we quite liked it... ~)

Automated Trading Platforms

Let's first review common automated trading platforms available:

After reviewing these summary articles, we can roughly summarize them in a table:

PlatformAdvantagesDisadvantages
MultiChartsSimple syntax, intuitive and easy backtestingRequires integration on your own, advanced features are paid
Excel VBAIntegration with other Excel functions and data sourcesLacks specialized financial market data and trading-related features
PythonHigh flexibility, extensive functionality, if you can code it, it can be doneYou usually can't code it
XQ Quantitative Trading PlatformPlenty of program samples like stock selection platformsLow flexibility, advanced features are paid

From this perspective, the only readily usable tool seems to be MultiCharts, but it's quite costly (starting at approximately $1000 NTD/month for the basic version).

Well, we're just rookies in program trading, just trying it out, so let's build it ourselves!

After all, engineers aren't afraid of being rookies, they're afraid of not trying.

Project Goals

We have obtained a Python API from a brokerage, and now the story begins!

Phase One Goals

Integrate with MasterLink's Python API and automate trading using this API.

masterlink

Phase Two Goals

After completing Phase One, we will consider integrating APIs from other brokerages and explore how to connect with them.