Technical Indicators

    Technical indicators are tools used in financial trading to analyze price and volume data of financial assets, such as stocks, currencies, commodities, and more. These indicators are mathematical calculations that can guide traders to make informed decisions about buying or selling assets based on historical price patterns and trends. There are different types of indicators, such as trend indicators, momentum indicators, and volatility indicators, that I will explain in detail below.

    Trend Indicators

    Trend indicators serve as invaluable guides in the world of finance, much like a sophisticated GPS system for traders. They are essential tools for measuring both the direction and the strength of the prevailing market trend, allowing investors to discern whether the market is ascending, descending, or moving laterally. Two prominent trend indicators that deserve special mention are the “Simple Moving Average (SMA)” and the “Average Directional Movement Index (ADX).” These indicators provide a robust analytical framework for market participants seeking to make informed decisions.

    Trend Indicator #1: Simple Moving Average (SMA)

    The Simple Moving Average (SMA) is a fundamental tool in technical analysis used to assess the historical price behavior of a stock. It calculates the average price of a security over a specified time period, creating a smoothed line that helps traders and investors identify trends and potential reversal points.

    Here’s how SMA can be used in the technical analysis of a stock:

    • Trend Identification: One of the primary uses of the SMA is to identify the prevailing trend in a stock’s price movement. When the stock price is above the SMA, it suggests an uptrend, and when it’s below, it indicates a downtrend.
    • Support and Resistance Levels: When the stock price approaches or touches the SMA, it may experience a bounce (if it’s a support level) or face resistance (if it’s acting as a resistance level). These levels can help traders make decisions about buying or selling.
    • Crossovers: The crossover strategy involves two SMAs with different timeframes, such as a short-term (e.g., 10-day) and a long-term (e.g., 50-day) SMA. A bullish signal occurs when the short-term SMA crosses above the long-term SMA, suggesting a potential upward trend.

    Here’s a Python example demonstrating how to retrieve the stock price of Google, along with its 10-day and 50-day moving averages.

    As seen in the chart above, a bullish signal occurs when the short-term SMA (10 days) crosses above the long-term SMA (50 days), suggesting a potential upward trend.

    Trend Indicator #2: Average Directional Movement Index (ADX)

    The Average Directional Movement Index (ADX) is a technical indicator to assess the strength and direction of a trend. Developed by J. Welles Wilder, it helps traders and investors make informed decisions about whether to buy, sell, or hold a stock. Here’s how the ADX can be used in the technical analysis of a stock:

    • Trend Strength Measurement: It provides a numeric value between 0 and 100. A higher ADX value suggests a stronger trend, whether it’s an uptrend or a downstream. Traders often use a threshold, such as the following:
      • ADX ≤ 25: No trend
      • ADX > 25: Trending market
      • ADX > 50: Strong trending market
    • Risk Management: Traders often use the ADX to manage risk. For instance, they might choose not to enter a trade or to tighten stop-loss orders when the ADX indicates a weak or indecisive trend.

    Here’s a Python example demonstrating how to retrieve the stock price of Google, along with its ADX.

    The chart illustrates that while the ADX has surpassed the 25 ADX threshold, indicating trending markets, it has not exceeded 50 since the beginning of 2022.

    Momentum Indicators

    Momentum indicators are tools used by traders and investors to evaluate the strength and speed of price movements in financial markets. These indicators help identify potential trend reversals, overbought or oversold conditions, and potential trading opportunities. These indicators are primarily concerned with the rate of change in price rather than the price levels themselves. One of the most popular momentum indicators is the “Relative Strength Index (RSI)”.

    Momentum Indicator #1: Relative Strength Index (RSI)

    The Relative Strength Index (RSI) is a tool used to measure the magnitude of recent price changes to evaluate overbought or oversold conditions and helps traders and investors make informed decisions. Here’s how the RSI can be used in technical analysis:

    • Overbought and Oversold Conditions: The RSI provides values ranging from 0 to 100. Traditionally, an RSI above 70 is considered overbought, while an RSI below 30 is considered oversold. Therefore, when RSI crosses above 70, it may generate a sell signal, while when it crosses 30 it may generate a buy signal.

    Here’s a Python example demonstrating how to retrieve the stock price of Google, along with its RSI.

    As observed in the chart above, there have been relatively few instances where the RSI fell below 30, indicating an “oversold” condition, and similarly, there have been limited instances where it exceeded 70, signifying an “overbought” condition.

    Volatility Indicators

    Volatility indicators is a tool used to measure and assess the degree of price variability or fluctuations. These indicators can help traders and investors measure market volatility, anticipate potential price movements, and manage risk. One of the most common volatility indicators is the Bollinger Bands.

    Volatility Indicator #1: Bollinger Bands

    Bollinger Bands was developed by John Bollinger in his book “Bollinger on Bollinger Bands”, and are designed to measure price volatility, and composed of three lines:

    • Middle Band: n-period simple moving average
    • Upper Band: k-standard deviations above the middle band
    • Lower Band: k-standard deviations below the middle band

    Here’s how Bollinger Bands can be used in the technical analysis of a stock:

    • Volatility Assessment: Bollinger Bands expand and contract based on the stock’s price volatility. When the bands widen, it indicates increased price volatility, and when they contract, it suggests reduced volatility.
    • Overbought and Oversold Conditions: When the stock’s price touches or crosses the upper band, it may be overbought, signaling a potential reversal or correction. Conversely, when the price touches or crosses the lower band, it may be oversold, indicating a potential rebound or rally.
    • Timeframes: The timeframe used for Bollinger Bands can be adjusted based on the trader’s strategy and time horizon. Shorter timeframes provide more responsive signals, while longer timeframes offer a broader view of price movements.

    Here’s a Python example demonstrating how to retrieve the stock price of Google, along with its Bollinger Bands.

    In the chart, when the price touches or crosses the upper band, it signals “overbought,” while touching or crossing the lower band indicates “oversold.” Additionally, widening bands signify increased price volatility, while contracting bands suggest reduced volatility.