Question: Description Write a program that simulates a long - short pairs trade, similar to what we have done in class. Requirements 1 . Read in
Description Write a program that simulates a longshort pairs trade, similar to what we have done in class. Requirements Read in Data Read in remote stock data for two companies using Yahoo Finance, Quandl, or some other remote data provider. Pairs Trade Construct a pairs trade with the company data from the previous step. Show how much a dollar invested in the position would grow over time. Graphs Graph the results for the portfolio. Margin Calculate the margin requirements for your short position. Assume your initial margin is and your maintenance margin is Assume that when you get a margin call you must bring your margin back up to the initial margin. Track during each investment period the total capital you must allocate to the pairs trade and the total allocated over the life of the position.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
