PROTECTED SOURCE SCRIPT

Gabriel's Bull Bear Power Elder's Force Index

Updated
Gabriel's Bull Bear Power Elder's Force Index (BBP-EFI) Indicator!

The Bull and Bear Power indicators were created by Dr. Alexander Elder, a renowned trader, psychologist, and author. He introduced these indicators in his book, "Trading for a Living" (1993). These tools are part of Elder's broader trading system and are designed to measure the strength of buying (bull) and selling (bear) pressures in the market.

About the Bull and Bear Power Indicators
Bull Power:

Measures the strength of buyers.
Formula:
Bull Power = High Price - Exponential Moving Average (EMA(Close))

Bull Power2 = High Price − Exponential Moving Average (EMA(Close))

Bear Power:

Measures the strength of sellers.
Formula:
Bear Power = Low Price − Exponential Moving Average (EMA)
Bear Power2 = Low Price−Exponential Moving Average (EMA)

Purpose:

These indicators work together to determine the balance of power between bulls and bears.
When combined with a trend indicator (like an EMA), they help identify potential trend reversals or continuations.

Other Indicators/Systems by Dr. Alexander Elder

Elder-Ray Index:

The Bull Power and Bear Power indicators are part of the Elder-Ray Index system.
This system combines Bull Power, Bear Power, and an EMA to analyze market trends and momentum.

Elder's Triple Screen Trading System:

One of Dr. Elder's most famous contributions.
A multi-timeframe trading system that combines trend-following indicators on higher timeframes with oscillators on lower timeframes.

Example:
Screen 1: Identify the trend on a higher timeframe using moving averages or MACD.
Screen 2: Use an oscillator such as Elder's Bull-Bear Power! or (e.g., Stochastic, RSI) to find entry points.
Screen 3: Use price action or breakouts for precise entries.

Elder's Force Index:

Measures the strength of bulls or bears by combining price changes and volume.
Formula:
Force Index = (Close − Close 𝑡 − 1) × Volume
Force Index = (Close t − Close t−1) × Volume

This is useful for identifying trend strength, momentum, and potential reversals.

Legacy of Dr. Alexander Elder

Dr. Elder’s work emphasizes:

Psychology in Trading:
As a trained psychiatrist, he highlights the importance of emotional discipline and understanding market psychology.

Multi-Factor Analysis:
He encourages using multiple indicators and timeframes for comprehensive analysis.
His contributions, particularly the Bull/Bear Power, Elder's Force Index, and the Triple Screen Trading System, remain highly respected and widely used in modern trading. I put the two famous indicators together, and I use the Triple Screen Trading system to trade with it!

Gabriel's Elder's Two-In-One Indicator:
The Bull Bear Power Elder's Force Index (BBP-EFI) is a custom technical indicator designed to analyze market momentum and identify potential trend reversals by combining the concepts of Elder's Force Index with Bull and Bear Power indicators. It offers traders a comprehensive view of buying and selling pressures in the market, helping to make more informed trading decisions.

Key Components:

First is Elder's Force Index (EFI):

Definition: Measures the strength of price movements multiplied by volume, reflecting the force behind price changes.
Calculation:
EFI for Close Prices: eficlose = EMA(change(close) * volume, length)
EFI for High Prices: efihigh = EMA(change(high) * volume, length)
EFI for Low Prices: efilow = EMA(change(low) * volume, length)
Note: length is a user-defined input for the EMA period.

Second is calculating the Bull and Bear Power using EFI as the Source:

Bull Power: Reflects the ability of buyers to push prices above the average consensus (EMA of EFI Close).
Calculation: bullPower = efihigh - EMA(eficlose, lengthInput)
Bear Power: Reflects the ability of sellers to push prices below the average consensus.
Calculation: bearPower = efilow - EMA(eficlose, lengthInput)
Note: lengthInput is a separate user-defined input for the EMA period in Bull and Bear Power calculations.

Bull Bear Power (BBP):

Calculation: bbp = bullPower + bearPower
Interpretation:
Positive BBP: Indicates bullish momentum.
Negative BBP: Indicates bearish momentum.

Features:
Customizable Parameters:

Elder's Force Index Length (length): Adjusts the sensitivity of the EFI calculation.
Bull Bear Power Length (lengthInput): Adjusts the sensitivity of the Bull and Bear Power calculations.
Moving Average Type (maTypeInput): Options include SMA, EMA, SMMA (RMA), WMA, VWMA, or none.
Moving Average Length (maLengthInput): Period for smoothing the BBP.
Bollinger Bands (bbMultInput): Applies Bollinger Bands to the SMA of BBP with customizable standard deviation multiplier.

Overbought and Oversold Bands:

Dynamic Calculation: Based on historical BBP values over a period determined by the average of length and lengthInput.
Levels (leveling): User-defined percentage to determine the overbought and oversold thresholds.
Visualization: Plots upper (ub) and lower (db) bands on the chart with optional fill between them.

Divergence Detection:

Bullish Divergence: Occurs when price makes a lower low while BBP makes a higher low, suggesting a potential upward reversal.
Bearish Divergence: Occurs when price makes a higher high while BBP makes a lower high, suggesting a potential downward reversal.
Customization:
Lookback Periods (lookbackLeft, lookbackRight): Adjusts the sensitivity of pivot detection for divergences.
Range Settings (rangeUpper, rangeLower): Defines the acceptable range of bars between pivot points.

Alerts:

Overbought/Oversold Alerts: Can be set to trigger when BBP crosses the calculated bands.
Divergence Alerts: Notifies when bullish or bearish divergences are detected.
Visualization:

Histogram and Line Plot: BBP is displayed both as a histogram and a line for better visualization.
Color Coding: Positive values in green shades (bullish), negative values in red shades (bearish).
Moving Average Plot: Optional smoothing line plotted over the BBP.
Bollinger Bands: Upper and lower bands plotted when the SMA + Bollinger Bands option is selected.
Background Coloring: Highlights areas where BBP crosses over or under the moving average.

How to Use the Indicator:
Identifying Trends:

Bullish Momentum: When BBP is above zero and rising, it indicates increasing buying pressure.
Bearish Momentum: When BBP is below zero and falling, it indicates increasing selling pressure.
Overbought/Oversold Conditions:

Overbought: When BBP rises above the upper band (ub), the market may be overextended on the buy side.
Oversold: When BBP falls below the lower band (db), the market may be overextended on the sell side.

Divergence Signals:

Bullish Divergence: Consider buying opportunities when a bullish divergence is detected.
Bearish Divergence: Consider selling or shorting opportunities when a bearish divergence is detected.
Smoothing with Moving Averages:

Trend Confirmation: Use the moving average of BBP to confirm trends and filter out noise.
Crossovers: BBP crossing above the moving average may signal a bullish trend, while crossing below may signal a bearish trend.
Bollinger Bands Application:

Volatility Assessment: Bollinger Bands widen during high volatility and narrow during low volatility.
Breakout Signals: A move outside the bands may indicate a strong trend continuation or reversal.

Settings and Inputs:
Bull Bear Power - Elder's Force Index Settings:

Elder's Force Index Length (length): Default is 13.
Bull Bear Power Length (lengthInput): Default is 13.
Calculate Oversold and Overbought Bands (calculateBands): Enables band calculation for alerts.
Calculate Divergence (calculateDivergence): Enables divergence detection and alerts.
BBP-EFI Moving Average:

Type (maTypeInput): Choose from "None", "SMA", "SMA + Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", "VWMA".
Length (maLengthInput): Default is 14.
BB StdDev (bbMultInput): Standard deviation multiplier for Bollinger Bands; default is 2.0.

Important Notes:
Volume Data Requirement: The indicator relies on volume data for the EFI calculation. If volume data is not available from your data provider, the indicator will not function and will display an error.
Customization: Adjust the input parameters to suit different time frames and trading styles. Shorter lengths make the indicator more sensitive but may increase false signals.

Complementary Use: It is recommended to use the BBP-EFI in conjunction with other technical analysis tools and not as a standalone indicator.
Alerts Configuration: Ensure alerts are properly set up in your trading platform to receive notifications based on the indicator's signals.

Example Usage Scenario:
Trend Confirmation: A trader observes that BBP has crossed above zero and the smoothing moving average, with a rising histogram. This suggests a strengthening bullish trend, and the trader considers entering a long position.

Overbought Condition: BBP reaches above the upper overbought band. The trader watches closely for any signs of reversal or divergence to secure profits or tighten stop-loss orders.

Bullish Divergence: Despite price making a lower low, BBP makes a higher low, triggering a bullish divergence alert. The trader anticipates a potential trend reversal and prepares to enter a long position.

By combining momentum, volume, and price action analysis, the Bull Bear Power Elder's Force Index indicator provides a multifaceted view of market dynamics, aiding traders in making more nuanced and timely trading decisions.

Happy Thanksgiving!
Release Notes
I added a library of new custom MA options for the BBP-EFI-based MA.
Bears PowerelderElder's Force Index (EFI)GABRIELVolume

Protected script

This script is published closed-source and you may privately use it freely.

Want to use this script on a chart?


Gabriel Amadeus

The Real World - Stocks Campus:

Stocks, Options, Futures, Forex, Crypto, this is what we trade.

Learn profitable trading systems or build your own, just like I did.

jointherealworld.com/?a=f7jkjpg8kh

Disclaimer