CMF and Scaled EFI OverlayCMF and Scaled EFI Overlay Indicator
Overview
The CMF and Scaled EFI Overlay indicator combines the Chaikin Money Flow (CMF) and a scaled version of the Elder Force Index (EFI) into a single chart. This allows traders to analyze both indicators simultaneously, facilitating better insights into market momentum and volume dynamics , specifically focusing on buying/selling pressure and momentum , without compromising the integrity of either indicator.
Purpose
Chaikin Money Flow (CMF): Measures buying and selling pressure by evaluating price and volume over a specified period. It indicates accumulation (buying pressure) when values are positive and distribution (selling pressure) when values are negative.
Elder Force Index (EFI): Combines price changes and volume to assess the momentum behind market moves. Positive values indicate upward momentum (prices rising with strong volume), while negative values indicate downward momentum (prices falling with strong volume).
By scaling the EFI to match the amplitude of the CMF, this indicator enables a direct comparison between pressure and momentum , preserving their shapes and zero crossings. Traders can observe the relationship between price movements, volume, and momentum more effectively, aiding in decision-making.
Understanding Pressure vs. Momentum
Chaikin Money Flow (CMF):
- Indicates the level of demand (buying pressure) or supply (selling pressure) in the market based on volume and price movements.
- Accumulation: When institutional or large investors are buying significant amounts of an asset, leading to an increase in buying pressure.
- Distribution: When these investors are selling off their holdings, increasing selling pressure.
Elder Force Index (EFI):
- Measures the strength and speed of price movements, indicating how forceful the current trend is.
- Positive Momentum: Prices are rising quickly, indicating a strong uptrend.
- Negative Momentum: Prices are falling rapidly, indicating a strong downtrend.
Understanding the difference between pressure and momentum is crucial. For example, a market may exhibit strong buying pressure (positive CMF) but weak momentum (low EFI), suggesting accumulation without significant price movement yet.
Features
Overlay of CMF and Scaled EFI: Both indicators are plotted on the same chart for easy comparison of pressure and momentum dynamics.
Customizable Parameters: Adjust lengths for CMF and EFI calculations and fine-tune the scaling factor for optimal alignment.
Preserved Indicator Integrity: The scaling method preserves the shape and zero crossings of the EFI, ensuring accurate analysis.
How It Works
CMF Calculation:
- Calculates the Money Flow Multiplier (MFM) and Money Flow Volume (MFV) to assess buying and selling pressure.
- CMF is computed by summing the MFV over the specified length and dividing by the sum of volume over the same period:
CMF = (Sum of MFV over n periods) / (Sum of Volume over n periods)
EFI Calculation:
- Calculates the EFI using the Exponential Moving Average (EMA) of the price change multiplied by volume:
EFI = EMA(n, Change in Close * Volume)
Scaling the EFI:
- The EFI is scaled by multiplying it with a user-defined scaling factor to match the CMF's amplitude.
Plotting:
- Both the CMF and the scaled EFI are plotted on the same chart.
- A zero line is included for reference, aiding in identifying crossovers and divergences.
Indicator Settings
Inputs
CMF Length (`cmf_length`):
- Default: 20
- Description: The number of periods over which the CMF is calculated. A higher value smooths the indicator but may delay signals.
EFI Length (`efi_length`):
- Default: 13
- Description: The EMA length for the EFI calculation. Adjusting this value affects the sensitivity of the EFI to price changes.
EFI Scaling Factor (`efi_scaling_factor`):
- Default: 0.000001
- Description: A constant used to scale the EFI to match the CMF's amplitude. Fine-tuning this value ensures the indicators align visually.
How to Adjust the EFI Scaling Factor
Start with the Default Value:
- Begin with the default scaling factor of `0.000001`.
Visual Inspection:
- Observe the plotted indicators. If the EFI appears too large or small compared to the CMF, proceed to adjust the scaling factor.
Fine-Tune the Scaling Factor:
- Increase or decrease the scaling factor incrementally (e.g., `0.000005`, `0.00001`, `0.00005`) until the amplitudes of the CMF and EFI visually align.
- The optimal scaling factor may vary depending on the asset and timeframe.
Verify Alignment:
- Ensure that the scaled EFI preserves the shape and zero crossings of the original EFI.
- Overlay the original EFI (if desired) to confirm alignment.
How to Use the Indicator
Analyze Buying/Selling Pressure and Momentum:
- Positive CMF (>0): Indicates accumulation (buying pressure).
- Negative CMF (<0): Indicates distribution (selling pressure).
- Positive EFI: Indicates positive momentum (prices rising with strong volume).
- Negative EFI: Indicates negative momentum (prices falling with strong volume).
Look for Indicator Alignment:
- Both CMF and EFI Positive:
- Suggests strong bullish conditions with both buying pressure and upward momentum.
- Both CMF and EFI Negative:
- Indicates strong bearish conditions with selling pressure and downward momentum.
Identify Divergences:
- CMF Positive, EFI Negative:
- Buying pressure exists, but momentum is negative; potential for a bullish reversal if momentum shifts.
- CMF Negative, EFI Positive:
- Selling pressure exists despite rising prices; caution advised as it may indicate a potential bearish reversal.
Confirm Signals with Other Analysis:
- Use this indicator in conjunction with other technical analysis tools (e.g., trend lines, support/resistance levels) to confirm trading decisions.
Example Usage
Scenario 1: Bullish Alignment
- CMF Positive: Indicates accumulation (buying pressure).
- EFI Positive and Increasing: Shows strengthening upward momentum.
- Interpretation:
- Strong bullish signal suggesting that buyers are active, and the price is likely to continue rising.
- Action:
- Consider entering a long position or adding to existing ones.
Scenario 2: Bearish Divergence
- CMF Negative: Indicates distribution (selling pressure).
- EFI Positive but Decreasing: Momentum is positive but weakening.
- Interpretation:
- Potential bearish reversal; price may be rising but underlying selling pressure suggests caution.
- Action:
- Be cautious with long positions; consider tightening stop-losses or preparing for a possible trend reversal.
Tips
Adjust for Different Assets:
- The optimal scaling factor may differ across assets due to varying price and volume characteristics.
- Always adjust the scaling factor when analyzing a new asset.
Monitor Indicator Crossovers:
- Crossings above or below the zero line can signal potential trend changes.
Watch for Divergences:
- Divergences between the CMF and EFI can provide early warning signs of trend reversals.
Combine with Other Indicators:
- Enhance your analysis by combining this overlay with other indicators like moving averages, RSI, or Ichimoku Cloud.
Limitations
Scaling Factor Sensitivity:
- An incorrect scaling factor may misalign the indicators, leading to inaccurate interpretations.
- Regular adjustments may be necessary when switching between different assets or timeframes.
Not a Standalone Indicator:
- Should be used as part of a comprehensive trading strategy.
- Always consider other market factors and indicators before making trading decisions.
Disclaimer
No Guarantee of Performance:
- Past performance is not indicative of future results.
- Trading involves risk, and losses can exceed deposits.
Use at Your Own Risk:
- This indicator is provided for educational purposes.
- The author is not responsible for any financial losses incurred while using this indicator.
Code Summary
//@version=5
indicator(title="CMF and Scaled EFI Overlay", shorttitle="CMF & Scaled EFI", overlay=false)
cmf_length = input.int(20, minval=1, title="CMF Length")
efi_length = input.int(13, minval=1, title="EFI Length")
efi_scaling_factor = input.float(0.000001, title="EFI Scaling Factor", minval=0.0, step=0.000001)
// --- CMF Calculation ---
ad = high != low ? ((2 * close - low - high) / (high - low)) * volume : 0
mf = math.sum(ad, cmf_length) / math.sum(volume, cmf_length)
// --- EFI Calculation ---
efi_raw = ta.ema(ta.change(close) * volume, efi_length)
// --- Scale EFI ---
efi_scaled = efi_raw * efi_scaling_factor
// --- Plotting ---
plot(mf, color=color.green, title="CMF", linewidth=2)
plot(efi_scaled, color=color.red, title="EFI (Scaled)", linewidth=2)
hline(0, color=color.gray, title="Zero Line", linestyle=hline.style_dashed)
- Lines 4-6: Define input parameters for CMF length, EFI length, and EFI scaling factor.
- Lines 9-11: Calculate the CMF.
- Lines 14-16: Calculate the EFI.
- Line 19: Scale the EFI by the scaling factor.
- Lines 22-24: Plot the CMF, scaled EFI, and zero line.
Feedback and Support
Suggestions: If you have ideas for improvements or additional features, please share your feedback.
Support: For assistance or questions regarding this indicator, feel free to contact the author through TradingView.
---
By combining the CMF and scaled EFI into a single overlay, this indicator provides a powerful tool for traders to analyze market dynamics more comprehensively. Adjust the parameters to suit your trading style, and always practice sound risk management.
Chỉ số lực Elder (EFI)
Viral Force IndexBased on the Elder Force Index (EFI) indicator, the Viral Force Index (VFI) attempts to normalize the original indicator by plotting EFI on the interval ]-100, 100 [.
VFI comes with a bar coloring feature, allowing users to get an idea of the current value of the indicator without having to look away from the chart.
Additionally, the linear regression line provides a simple way to filter out the noise with little to no additional 'lag'.
License tl;dr: Don't sell it, or distribute it without permission, and you'll be fine.
If you find a bug, or you have feedback, feel free to leave a comment.
Elder's Force Index Color BarBased on the Elder's Force Index (EFI) , +/- of the EFI and its ema is used to describe the rise, fall or possible reversal of the market, and finally shown by bar color.
The green bar represents a strong bull and the red bar represents a strong bear;
The blue bar indicates that the downtrend is exhausted and may rise. Likewise the yellow bar.
Of course, it is difficult to buy the bottom and sell the top at any time. This indicator needs to be judged together with the pattern or other indicators that predict reversals in order to increase the win rate.
Happy Trading.
根据Elder's Force Index修改而成,取消了幅图指标,仅用bar color来表现上涨,下跌和转折。
绿色k线代表上涨动能充足,红色k线表示下跌动能充足;
蓝色k线表示下跌力竭,可能会上涨;
黄色k线表示上涨力竭,可能会下跌。
当然,任何时候抄底摸顶都是困难的,该指标需要和形态或者其他预测反转的指标一起判断才能增加成功率。
祝交易愉快。
緑は上昇トレンドで、赤は下落トレンドです;
青は下落が尽きて上昇する可能性があることを示すことで、黄色は上昇が終わり、下落の可能性があることを示しています。
成功率を高めるためには、パターンや反転を予測する他の指標と合わせて判断する必要があります。
Happy Trading。
Unleash Elder Force on Your ChartI had searched for a proper indicator to recognize important impulses, so I just need to take a look at the indicator to quickly find them on the chart. Alexander Elder's Force is the answer, although I made a few changes to the design.
First, I found more accuracy using Hull Moving Average. It steers faster making sudden spikes even more visible. Second, it is faster to catch up and therefore ready for another impulse to measure.
The second change is to the visual presentation of the Elder Force. Columns look prettier and there needs to be a manually set value that gives regular sideways moves a border beside which it is likely to be either an institutional interference or a trend.
Furthermore, you can plot (minus) Elder Force in the indicator window too. This should be used to compare upside and downside thrusts with each other.
I don't use nor intend to use Elder Force as a buy/sell indicator. The point is to highlight certain price-action moments that I will then review and consider an entry after. I believe most indicators should be used like that.
:)
Relative Strength of Volume Indicators by DGTThe Relative Strength Index (RSI) , developed by J. Welles Wilder, is a momentum oscillator that measures the speed and change of price movements.
• Traditionally the RSI is considered overbought when above 70 and may be primed for a trend reversal or corrective pullback in price, and oversold or undervalued condition when below 30. During strong trends, the RSI may remain in overbought or oversold for extended periods.
• Signals can be generated by looking for divergences and failure swings. If underlying prices make a new high or low that isn't confirmed by the RSI, this divergence can signal a price reversal. If the RSI makes a lower high and then follows with a downside move below a previous low, a Top Swing Failure has occurred. If the RSI makes a higher low and then follows with an upside move above a previous high, a Bottom Swing Failure has occurred
• RSI can also be used to identify the general trend. In an uptrend or bull market, the RSI tends to remain in the 40 to 90 range with the 40-50 zone acting as support. During a downtrend or bear market the RSI tends to stay between the 10 to 60 range with the 50-60 zone acting as resistance
This study aim to implement Relative Strength concept on most common Volume indicators, such as
• Accumulation Distribution is a volume based indicator designed to measure underlying supply and demand
• Elder's Force Index (EFI) measures the power behind a price movement using price and volume
• Money Flow Index (MFI) measures buying and selling pressure through analyzing both price and volume (used as it is)
• On Balance Volume (OBV) , created by Joe Granville, is a momentum indicator that measures positive and negative volume flow
• Price Volume Trend (PVT) is a momentum based indicator used to measure money flow
Plotting will be performed for regular RSI and RSI of Volume indicator (RSI(VOLX)) selected from the dialog box, where the possibility to apply smoothing is provided as option. Additionally, labels can be added optionally to display the value and name of selected volume indicator
Secondly, ability to present Volume Histogram within the same study along with its Moving Average or Volume Oscillator based on selection
Finally, Volume Based Colored Bars , a study of Kıvanç Özbilgiç is added to emphasis volume changes on top of the bars
Nothing excessively new, the study combines RSI with;
- RSI concept applied to some of the common Volume indicators presented with a highlighted over/under valued threshold area, optional labeling and smoothing,
- added Volume data with additional information and
- colored bars based on volume
Thanks @Vishant_Meshram for the inspiration 🙏
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Force IndexWhat is the force index ?
The force index is an oscillator used to confirm price breakout strengths and identify potential trends.
It was popularized by A. Elder.
How the force index is computed ?
Knowing that volume is the fuel of a price movement, reliable breakouts and trend continuation are more likely to occur on high volume breakouts. This is why the force index is computed with the intensity of the price movement, and it's volume , using the formula ema13((close(n) - close(n-1)) * volume ) .
How to use the force index
An important change in the force index indicate a strong momentum in the price action.
You can read more about the force index interpretation on Investopedia
Customization
You can display the indicator as an histogram, or as a line chart.
You can change EMA length, although it's recommended to keep it at default value.
Elder's Force Index with bollinger bandsThis scripts is usefull to identify possible top or bottoms of the markets.
Red BB : Sell
Green BB : Buy
Elder's force index impulseForce Index is an oscillator. It combines volume with prices
to discover the force of bulls or bears behind every rally or decline.
It brings together three essential pieces of information the direction of price
change, its extent, and the volume during that change. It provides a practical way of
using volume for making trading decisions.
Force Index can be used in its raw form, but its signals stand out much more
clearly if we smooth it with a moving average. Using a short EMA of Force Index
helps pinpoint entry and exit points. Using a longer EMA helps confirm trends.
Efi long > 0 (bullish trend) and efi short < 0 = buy signal (green bar)
Efi long < 0 (bear trend) and efi short>0 = sell signal (red bar)
Elder's Force Index Function (with source)TradingView has built in functions for RSI, Momentum, and many other oscillators. Why the source isn't available for Elder's Force Index is beyond me. To me it's one of the Holy Grail indicators. This is EFI indicator with a simple function inside the source code. You're can easily copy this function into any study(indicator) or strategy that uses built-in oscillators, as a replacement.
Example using EFI instead of RSI in built-in Divergence Indicator:
gyazo.com
//Discord: Sheldon#7775
//Server: discord.gg
Pullback Trading [Fhenry0331]The indicator is taken from Alexander Elders "Triple Screen System," minus using the Weekly MACD as a filter/trend. I believe waiting for the force index and the weekly MACD histogram to line-up is uber conservative and a trader will miss too many signals (In my opinion).
The indicator is for a pullback trader. A trader that waits for a trend to develop then enters on a pullback.
The indicator defines an uptrend start: as the 13 ema crossing above the 26 ema. It defines a downtrend start: as the 13 ema crossing below the 26 ema.
The pullback in an uptrend: 13 ema is above the 26 ema. Elders-Force-Index is below the zero line. Price low has crossed below the 13 ema (one can also say price closes below the 13 ema if they so wish).
The pullback in a downtrend: 13 ema is below the 26 ema. Elders-Force-Index is above the zero line. Price high has also crossed above the 13 ema.
Please note that the pullback signals do not necessitate an automatic buy or sell (the instrument can be still pulling back deeper and not ready to resume it's trend.) One should place orders above (long) or below (short) bars with the pullback signals. Do so on signals until orders are filled.
Although the indicator is meant for pullbacks one can make an aggressive entry at the onset of a crossover of ema's.
For clarity background colors has been added to the indicator.
works well on daily time frame. Also look at intraday (5) minute time frame on trending stocks (news, earnings, volume, etc.)
Keep It Simple.
Enjoy!
Cumulative Force IndexVolume indicator adapted from Elder's Force Index.
From here:
stageanalysis.net
SB_Elder Impulse SystemThe strategy is based on LazyBear's Elder Impulse System
Strategy(in layman terms):
Long: When the green bar in the Elder Impulse System's indicator shows up
Short: When the red bar in the Elder Impulse System's indicator shows up
Close trade/Profit booking: When the blue bar in the Elder Impulse System's indicator shows up
Original Idea:
Message in the script if you think of any modifications/ enhancements.
Donations/Tips... :) -
BTC: 1BjswGcRR6c23pka7qh5t5k56j46cuyyy2
ETH: 0x64fed71c9d6c931639c7ba4671aeb6b05e6b3781
LTC: LKT2ykQ8QSzzfTDB6Tnsf12xwYPjgq95h4
Elder's Force Index Double combined by iduThe idea is to see Elder's force index smoothed EMA in different time frame simultaneously.
Default intervals are (2) and (13)
Base on samuel16 script.
Elder's Market Thermometer [LazyBear]Market temperature, introduced by Dr.Alexander Elder, helps differentiate between sleepy, quiet and hot market periods.
Following is Mr.Elder's explanation on how to use this indicator (from his book "Come in to my Trading Room"):
"When markets are quiet, the adjacent bars tend to overlap. The consensus of value is well established, and the crowd does little buying or selling outside of yesterday’s range. When highs and lows exceed their previous day’s values, they do so only by small margins. Market Thermometer falls and its EMA slants down, indicating a sleepy market. When a market begins to run, either up or down, its daily bars start pushing outside of the previous ranges. The histogram of Market Thermometer grows taller and crosses above its EMA, which soon turns up, confirming the new trend."
"Market Thermometer gives four trading signals, based on the relationship between its histogram and its moving average:
1) The best time to enter new positions is when Market Thermometer falls below its moving average. When Market Thermometer falls below its EMA, it indicates that the market is quiet. If your system flashes an entry signal, try to enter when the market is cooler than usual. When Market Thermometer rises above its moving average, it warns that the market is hot and slippage more likely.
2) Exit positions when Market Thermometer rises to triple the height of its moving average. A spike of Market Thermometer indicates a runaway move. When the crowd feels jarred by a sudden piece of news and surges, it is a good time to take profits. Panics tend to be short-lived, offering a brief opportunity to cash in. If the EMA of Market Thermometer stands at 5 cents, but the Thermometer itself shoots up to 15 cents, take profits. Test these values for the market you are trading.
3) Get ready for an explosive move if the Thermometer stays below its moving average for five to seven trading days. Quiet markets put amateurs to sleep. They become careless and stop watching prices. Volatility and volume fall, and professionals get a chance to run away with the market. Explosive moves often erupt from periods of inactivity.
4) Market Thermometer can help you set a profit target for the next trading day. If you are a short-term trader and are long, add the value of today’s Thermometer EMA to yesterday’s high and place a sell order there. If you are short, subtract the value of the Thermometer’s EMA from yesterday’s low and place an order to cover at that level."
You can configure the "Explosive Move threshold" (default: 3), "Idle Market Threshold" (default: 7) and "Thermometer EMA length" (default: 22) via Options page.
More info:
"Come in to my Trading Room - A complete Guide to Trading" by Dr.Alexander Elder. (Page 162)
List of my other indicators:
- Chart:
- GDoc: docs.google.com
Elder Ray (Bear Power) Strategy Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
and selling pressure in the market. The Elder-ray is often used as part
of the Triple Screen trading system but may also be used on its own.
Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
market consensus of value. Bear Power measures the ability of sellers to
drive prices below the consensus of value. Bear Power reflects the ability
of sellers to drive prices below the average consensus of value.
Bull Power is calculated by subtracting the 13-day EMA from the day's High.
Bear power subtracts the 13-day EMA from the day's Low.
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
Elder Ray (Bull Power) Strategy Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
and selling pressure in the market. The Elder-ray is often used as part
of the Triple Screen trading system but may also be used on its own.
Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
market consensus of value. Bull Power measures the ability of buyers to
drive prices above the consensus of value. Bear Power reflects the ability
of sellers to drive prices below the average consensus of value.
Bull Power is calculated by subtracting the 13-day EMA from the day's High.
Bear power subtracts the 13-day EMA from the day's Low.
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
Elder Ray (Bear Power) Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
and selling pressure in the market. The Elder-ray is often used as part
of the Triple Screen trading system but may also be used on its own.
Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
market consensus of value. Bear Power measures the ability of sellers to
drive prices below the consensus of value. Bear Power reflects the ability
of sellers to drive prices below the average consensus of value.
Bull Power is calculated by subtracting the 13-day EMA from the day's High.
Bear power subtracts the 13-day EMA from the day's Low.
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
Elder Ray (Bull Power) Developed by Dr Alexander Elder, the Elder-ray indicator measures buying
and selling pressure in the market. The Elder-ray is often used as part
of the Triple Screen trading system but may also be used on its own.
Dr Elder uses a 13-day exponential moving average (EMA) to indicate the
market consensus of value. Bull Power measures the ability of buyers to
drive prices above the consensus of value. Bear Power reflects the ability
of sellers to drive prices below the average consensus of value.
Bull Power is calculated by subtracting the 13-day EMA from the day's High.
Bear power subtracts the 13-day EMA from the day's Low.
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
Indicator: Elder Impulse SystemAccording to Elder, "The Impulse System encourages you to enter a trade cautiously but exit fast, by identifying inflection points where a trend speeds up or slows down. This is the professional approach to trading, the total opposite of the amateur's style. Beginners jump into trades without thinking too much and take forever to get out, hoping and waiting for the market to turn their way."
The Impulse System is based on two indicators, a 13-day exponential moving average and the MACD-Histogram. The moving average identifies the trend, while the MACD-Histogram measures momentum. As a result, the Impulse System combines trend following and momentum to identify impulses that can be traded.
By default it uses your chart's time frame, but you can set it to any custom time frame via options page. Optionally, price bars can be color coded too.
More info:
stockcharts.com
Steps to import / use custom indicators from this chart:
PDF: drive.google.com