• Stars
    star
    256
  • Rank 159,219 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

We tested 3 approaches for Pair Trading: distance, cointegration and reinforcement learning approach.

pairstrade-fyp-2019

Final year project at HKUST. We tested 3 main approaches for performing Pairs Trading:

  • distance method
  • cointegration method (rolling OLS, Kalman Filter)
  • reinforcement learning agent (proposed)

Final report.

FYP members: myself, Gordon, Brendan

How to get started?

  • Run ./setup.sh to install all dependencies

Note

  • In our experiments, we used financial data taken from the Interactive Brokers platform, which is not free. Due to their regulations, we cannot release the financial data used in our experiments to the public. Feel free to use your own price data to perform experiments.

Disclaimer

  • The strategies we implemented have not been proven to be profitable in a live trading account
  • The reported returns are purely from backtesting procedures, and they may be susceptible to lookahead bias that we are not aware of

Updates

  • We're no longer developing this, check out Yuri's findings regarding the RL agent