A common tool used for visualizing stock price changes over time is an OHLC (open, high, low, close) chart. This is a chart of “candles” where each candle contains the open, high, low, and close of a stock price over a set time interval. If we use a daily OHLC chart, the time interval for each candle is one trading day. Other common time intervals used are month, hour, and minute.
Let’s use minute OHLC data to demonstrate. Use Polygon’s API to retrieve this data. Polygon’s API requires either a Polygon key or Alpaca key. If you don’t have this…
Two common portfolios investors use are the Maximum Sharpe Ratio (MSR) portfolio and the Global Minimum Variance (GMV) portfolio.
To construct the MSR portfolio, an investor needs to calculate the asset weights yielding the largest excess return per unit of risk (using the standard deviation of a portfolio’s return as the measure of risk). Constructing this portfolio requires two components: an estimate of the expected returns of each asset and an estimated covariance matrix, representing the covariance between each asset. In practice, it is difficult to calculate accurate estimates of the expected returns of assets.
Stock prices fluctuate over time depending on market sentiment. Firms can gauge the current and historic market sentiment for individual stocks or entire markets by using financial news articles. With these articles, firms can use natural language processing techniques such as named entity recognition and sentiment analysis to measure outlook for specific stocks or the market as a whole. These methods help to tag articles about publicly traded companies like Microsoft or Netflix and to calculate a sentiment tag or rating indicating if the financial article is positive, neutral, or negative.
This article will go over how you can compile…