alpaca-pairs-trading
alpaca-pairs-trading copied to clipboard
Pairs Trading with Alpaca - created on behalf of AlgoTrading101.com for alpaca.markets/learn
================================================================ Pairs Trading - Strategy Deployment Guide - alpaca.markets/learn
This is the code used in the article: Pairs Trading - Strategy Deployment Guide published on the alpaca.markets/learn <https://alpaca.markets/learn>_ blog. The article can be found here - https://alpaca.markets/learn/pairs-trading/
This guide was created on behalf of AlgoTrading101.com
Table of Contents
What Is Pairs Trading? <https://alpaca.markets/learn/pairs-trading/#example>_Why should I run a pairs trading strategy? <https://alpaca.markets/learn/pairs-trading/#example2>_Why shouldn’t I run a pairs trading strategy? <https://alpaca.markets/learn/pairs-trading/#example3>_How do I get started with Alpaca? <https://alpaca.markets/learn/pairs-trading/#example4>_How to code a pairs trading strategy with the Alpaca API? <https://alpaca.markets/learn/pairs-trading/#example5>_How do we size our trades? <https://alpaca.markets/learn/pairs-trading/#example6>_How do I set a stop loss or take profit? <https://alpaca.markets/learn/pairs-trading/#example7>_How can I build a successful pairs trading strategy? <https://alpaca.markets/learn/pairs-trading/#example8>_
Requirements
python <https://www.python.org>_ >= 3.6+alpaca_trade_api <https://github.com/alpacahq/alpaca-trade-api-python>_ (tested to work with >= 0.51 )pandas <https://github.com/pandas-dev/pandas>_ >= 1.1.2+
Author Info
:author: Jignesh Davda :author page: https://algotrading101.com/learn/author/jdavda/ :published: 2020-12-02