Question: MACD is the difference between a short term moving average and a long term moving average, MACD = maShort maLong. Typically the short term

MACD is the difference between a short term moving average and a long term moving average, MACD = maShort − maLong. Typically the short term average is 12 days and the long term is 26 days. When the short term exceeds the long term by the certain amount, the “overbought-oversold limit,” then it is maintained that the stock is overbought and it is predicted that the stock price will fall. Conversely when the short term is less than the long term by more than the overbought-oversold limit, then the stock is oversold and the price is predicted to rise. Write a program to test this hypothesis.

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To test the hypothesis that the MACD indicator can predict stock prices we can write the following program Python import numpy as np import pandas as ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance With Monte Carlo Questions!