Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use matlab Tesla Motor Company (TSLA) daily OPEN stock prices, in US dollars, for 10 days are: DATE TSLA 03/25/22 1010.64 03/24/22 1013.92 03/23/22 999.11
use matlab
Tesla Motor Company (TSLA) daily OPEN stock prices, in US dollars, for 10 days are: DATE TSLA 03/25/22 1010.64 03/24/22 1013.92 03/23/22 999.11 03/22/22 993.98 03/21/22 921.16 905.39 03/18/22 03/17/22 871.60 03/16/22 840.23 03/15/22 801.89 03/14/22 766.37 Suppose you invested $1,000,000.00 to TSLA at the start of the 10-day trading period (03/14/22). If the stock price goes up, you sell 10% of currently own shares and if the stock price goes down, you buy 10% of currently own shares from 03/15/22 to 03/25/22. Use MATLAB (a) Construct the price array for TSLA and output in column vector with proper format. (b) Plot the daily price in a graph. Include title, labels, and index. (c) Compute and output the number of shares bought for TSLA on 03/14/22. (d) Compute and output the number of share daily fluctuations for TSLA. (e) Compute and output daily balance for TSLA. (f) Compute and output overall gain/loss for TSLA at the end of a trading period. (g) Plot the total daily balance and balance for each company 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