🎁 FREE Algorithms Interview Questions Course - bit.ly/3s37wON
🎁 FREE Machine Learning Course - bit.ly/3oY4aLi
🎁 FREE Python Programming Course - bit.ly/3JJMHOD
📱 FREE Algorithms Visualization App - bit.ly/algorhym...
✅ Quantitative Finance and Algorithmic Trading Bootcamp: bit.ly/3gNNNgo
In this lecture we'll use cointegration in Python to find long-term relationships between 2 assets (stocks in this case). It is crucial to know the difference between correlation and cointegration. Correlation is just short-term relationship between 2 random variables.
In our trading strategy we want to find assets (stocks) that are correlated on the long run. This is why we have to use cointegration instead.
✔️ this is the first step in mean-reverting trading strategies (pairs trading and statistical arbitrage)
✔️ if we can identify a single pair of assets that are correlated on the Long run - we can use it in our trading strategy
✔️ we can use linear regression (on historical data for the past 90 days) to determine the hedge ratio (so the position sizes of the short and long positions accordingly)
You can learn about how to implement it in Python and Backtrader in the bootcamp!
🫂 Facebook: / globalsoftwarealgorithms
🫂 Instagram: / global.software.algori...
Негізгі бет Testing for Cointegration for Statistical Arbitrage and Pairs-Trading Strategies (Python)
Пікірлер: 7