For many stock market traders, knowing when to buy and sell equities is essential to making a profit. Thare are many strategies used in timing the markets, and these often include so called technical indicators. One of the most popular technical indicators is called Moving Average Convergence Divergence (MACD).
The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of prices. The MACD is calculated by subtracting a slow exponential moving average (EMA) of the price from a fast EMA. Another EMA of the MACD, called the signal line, is then plotted on top of the MACD, functioning as a trigger for buy and sell signals. from Investopedia
The application can be found here: MACD Shiny App