Introduction to Elder's Force Index Indicator

Article

Introduction to implementing Elder's Force Index Indicator in fintech applications using LightningChart JS Trader.
Soroush Sohrabian

Ahmad Omid

Data Science Developer

LinkedIn icon
Elders-Force-Index-Cover

Introduction to Elder’s Force Index Indicator

The Elder’s Force Index Indicator is a technical analysis tool developed by Dr. Alexander Elder, renowned for his expertise in trading psychology and market dynamics. This indicator uniquely blends price movement and volume data to measure the strength or “force” of a price move in the financial markets. The force index is a versatile tool that traders can use to identify potential trend reversals, validate ongoing trends, and gauge market momentum.

What is the Elder’s Force Index about?

At its core, the Elder’s force index indicator quantifies the strength of price movements by incorporating two primary market factors:

  1. Price change: Measures the direction and magnitude of the price movement.
  2. Volume: Reflects the intensity of trader activity supporting the price movement.

When combined, these factors provide a numerical value that represents the “force” driving the price, offering traders insight into the market’s internal dynamics.

Elder’s Force Index & Its Usage in Trading

Traders use the elder force index indicator as a multi-purpose tool to:

  • Spot reversals: Large shifts in the indicator can signify potential trend changes.
  • Confirm trends: Rising or falling EFI values validate ongoing price movements.
  • Identify momentum shifts: A declining EFI may indicate waning momentum, even within a trend.
  • Avoid false breakouts: Helps filter out noise from genuine price action.

It works well across multiple timeframes, making it a valuable tool for day traders, swing traders, and long-term investors alike.

Elder’s Force Index Indicator

The elder’s force index indicator uses straightforward calculations but provides powerful insights. Positive values indicate bullish strength, while negative values suggest bearish dominance. By understanding how to interpret these readings, traders can incorporate this indicator into their trading strategies effectively.

How Does the Elder’s Force Index Affect Stock Prices?

While the elder force index indicator itself does not influence stock prices, it provides actionable information about market conditions that traders can use to make decisions. Below are some of the key applications in trading:

  1. Trend Analysis
  • Positive Force Index: Indicates upward momentum when price increases are supported by high volume.
  • Negative Force Index: Reflects bearish momentum when price decreases are accompanied by high volume.
  1. Volume and Momentum Confirmation

The EFI identifies whether market participants strongly support the price movement. For example, during a breakout, a rising EFI confirms the breakout’s validity by showing strong participation.

  1. Divergence Identification

Traders can spot divergences between the force index and price movement.

  • Bullish Divergence: The price is falling, but the EFI starts rising, signaling a potential reversal.
  • Bearish Divergence: The price is rising, but the EFI declines, hinting at weakening momentum.
  1. Volatility Tracking

The force index reacts strongly to sudden price changes on high volume, helping traders understand whether a move is driven by genuine market interest or speculative activity.

Formula

The elder’s force index indicator is calculated using a simple yet effective formula. Understanding this formula, its components, and its interpretation is crucial for effective application in trading.

Elder’s Force Index Formula

Force Index (EFI) = (Current Price − Previous Price) × Volume

Key Elements:

  • Current Price – Previous Price: Captures the price change (positive or negative).
  • Volume: Measures the level of participation, amplifying the price change.

The result is a value that oscillates above or below zero, providing insight into the direction and strength of price movements.

Interpretation & Key Components of the Elder’s Force Index Indicator

  • Positive EFI Values:

A positive reading suggests upward momentum. Higher values indicate stronger bullish activity.

  • Negative EFI Values:

A negative reading implies downward momentum. Larger negative values signal stronger bearish activity.

  • Near-Zero Values:

EFI values close to zero signify weak or indecisive movements, often seen during consolidation periods.

Key Components

  1. Price Movement

The price change in the formula determines the direction of the force index. A rising price indicates bullish activity, while a falling price signals bearish momentum.

  1. Volume

High trading volume amplifies the impact of price changes, making the force index more sensitive to significant market moves.

  1. Moving Averages (Smoothed EFI)

Many traders apply moving averages to the EFI to reduce noise and highlight sustained trends. For example:

  • Short-Term MA: Useful for day trading and fast market movements.
  • Long-Term MA: Helps identify broader market trends.

How to Create the Technical Indicator Using LC JS Trader

Step 1: Get LightningChart JS Trader

To begin, you’ll need access to LightningChart JS Trader. This library provides the tools necessary to create advanced technical indicators, including the Elder’s Force Index Indicator. Visit the LightningChart JS Trader page to download the required components and review the documentation.

Step 2: Review the Interactive Example

LightningChart JS Trader includes interactive examples that demonstrate how to create custom technical indicators. Start by reviewing the documentation, focusing on how to integrate the Elder’s Force Index Indicator into your chart setup. The interactive examples will guide you through the process of setting up the EFI Indicator, from importing the necessary modules to modify the chart settings.

Step 3: Code Explanation

In this step, we will break down the code that creates the chart with the Elder’s Force Index Indicator, as shown in the image, using LightningChart JS Trader. The code demonstrates how to initialize a trading chart, apply the EFI Indicator, and customize its appearance.

Elders-Force-Index-Chart-Example

Here’s a detailed breakdown of each section:

A. Importing the Required Libraries:

   const lcjsTrader = require('@arction/lcjs-trader')
   const lcjs = require('@arction/lcjs')
   const { Themes } = lcjs
  • lcjsTrader: This library provides access to the LightningChart JS Trader functionalities, allowing you to create advanced financial charts.
  • lcjs: The main LightningChart JS library, used for general charting functionality.
  • Themes: A property within lcjs that provides access to pre-built themes. In this case, we are using the darkGold theme to style the chart.

B. Initializing the Trading Chart:

   lcjsTrader.trader(TRADER_LICENSE).then(async (trader) => {
    // Create a trading chart.
    const tradingChart = trader.tradingChart({ loadFromStorage: false, colorTheme: Themes.darkGold })
  • trader(TRADER_LICENSE): Initializes the LightningChart JS Trader with the provided license key (TRADER_LICENSE). This is required to access the charting functionalities for financial data.

Note you can request a LightningChart JS Trader trial license, which is free.

  • tradingChart(): This function creates a trading chart with certain options.
  • loadFromStorage: false: This disables the loading of previously stored chart data from local storage, ensuring a fresh chart setup.
  • colorTheme: Themes.darkGold: This applies the darkGold theme to the chart, which influences the background color, gridlines, and other visual elements.

C. Adding and Customizing the Indicator

    // Add Elder's Force Index Indicator
    const efi = tradingChart.indicators().addEldersForceIndex()
    efi.setPeriodCount(13)
    efi.setSource(3)
    efi.setLineColor('#F028BB')
    efi.setLineWidth(3)
  • addEldersForceIndex(): EFI uses price and volume information to measure the strength of a price move.
  • efi.setPeriodCount (13): The number of time periods (n) used to calculate the indicator.
  • **efi.setSource(3): Values to base the calculations on. In this case, 3 represents the Close price.
  • efi.setLineColor('# F028BB'): Changes the color of the EFI line to pink. This enhances the visual distinction of the indicator on the chart.
  • efi.setLineWidth(3): Sets the line thickness of the EFI to 3 pixels. This makes the line more prominent and easier to observe during analysis.

D. Loading Data from a CSV File

    // Reading data from a file.
    await fetch(`${document.head.baseURI}examples/assets/0000/Alphabet Inc (GOOGL).csv`).then((res) => res.text()).then((text) => {
        tradingChart.readCsvString(text, 'Alphabet Inc (GOOGL)')
    })
  • fetch(): This function retrieves a CSV file containing historical data for Alphabet Inc. (GOOGL). The CSV file includes pricing information for the company’s stock, which is plotted on the chart.
  • readCsvString(): This function reads the CSV data and interprets it as pricing data for Alphabet Inc. The second argument (‘Alphabet Inc (GOOGL)’) sets the label for the chart, as seen at the top of the chart image.

E. Setting the Currency for the Chart

    tradingChart.setCurrency('USD')
   })
  • setCurrency('USD'): This sets the currency of the chart to USD, ensuring that the pricing data is interpreted and displayed in US dollars.

** Enumeration Source in LC JS Trader:

To select which values the indicator calculations are based on.

Index
Source
Description
Index
0
Source
Open
Description
Calculations based on Open values.
Index
1
Source
High
Description
Calculations based on Median Price values, that is the arithmetical mean of High and Low. (High + Low) / 2
Index
2
Source
Low
Description
Calculations based on Low values.
Index
3
Source
Close
Description
Calculations based on Close values.
Index
4
Source
Hl2
Description
Calculations based on Median Price values, that is the arithmetical mean of High and Low. (High + Low) / 2
Index
5
Source
Oc2
Description
Calculations based on arithmetical mean of Open and Close values. (Open + Close) /2
Index
6
Source
Hlc3
Description
Calculations based on Typical Price values, that is the arithmetical mean of High, Low and Close. (High + Low + Close) / 3
Index
7
Source
Olhc4
Description
Calculations based on arithmetical mean of Open, High, Low and Close values. (Open + High + Low + Close) / 4
Index
8
Source
Hlcc4
Description
Calculations based on Weighted Close values. (Open + High + Close * 2) / 4
Index
9
Source
Indicator
Description
Calculations based on other indicator's values.

Advantages and Limitations of the Indicator

Advantages

  • Versatility: The force index indicator can be applied to various timeframes, making it suitable for both short-term and long-term strategies.
  • Trend Confirmation: By combining price and volume, the indicator provides a more reliable assessment of trend strength compared to price alone.
  • Integration with Other Indicators: Works well with tools like moving averages or oscillators, enhancing its effectiveness in strategy development.
  • Spotting Divergences: Helps identify early warning signs of potential reversals through divergences between price and the indicator.
  • Ease of Use: Its simple formula and straightforward interpretation make it accessible to traders of all experience levels.

Limitations

  • Lagging Indicator: Like many technical indicators, the force index relies on past price and volume data, which can lead to delayed signals.
  • False Signals in Volatile Markets: In highly volatile conditions, sudden spikes in price or volume can generate misleading readings, requiring additional confirmation.
  • Volume Sensitivity: The EFI’s reliance on volume means that it may be less effective in low-volume markets or for assets with irregular trading activity.
  • Context Dependency: The indicator must be analyzed alongside other market factors, as it does not account for broader macroeconomic or fundamental data.

Conclusion

The Elder’s Force Index Indicator is a powerful tool that combines price and volume to assess the strength and momentum of price movements in the stock market. By analyzing the force driving market trends, traders can identify potential reversals, validate ongoing trends, and make informed decisions about entry and exit points. Its versatility across various timeframes and compatibility with other technical indicators make it a valuable addition to any trading strategy.

An important aspect of leveraging the Elder’s Force Index Indicator effectively is choosing the right place for visualization and implementation. LightningChart JS Trader offers an interactive and high-performance environment for analyzing the force index indicator.

With its ability to render dynamic charts and support real-time data, it allows traders to fine-tune their strategies and monitor market movements with precision. By using LightningChart JS Trader, you can seamlessly integrate advanced technical indicators like the Elder’s Force Index into your workflow, enhancing decision-making in fast-paced markets.

Continue learning with LightningChart