Answered step by step
Verified Expert Solution
Question
1 Approved Answer
FIN 3220 Coding Assignment #6 Description Write a program that simulates a long-short pairs trade, similar to what we have done in class. Requirements
FIN 3220 Coding Assignment #6 Description Write a program that simulates a long-short pairs trade, similar to what we have done in class. Requirements 1. Read in Data (15%) Read in remote stock data for two companies using Yahoo Finance, Quandl, or some other remote data provider. 2. Pairs Trade 40%) 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. 3. Graphs (20%) Graph the results for the portfolio. 4. Margin (25%) Calculate the margin requirements for your short position. Assume your initial margin is 50% and your maintenance margin is 35%. 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started