Colored Columns for Elder's Force Index EMAThe Elder's Force Index is an oscillator that takes into account the change of the price combined with the volume:
EFI = (close of the current day - close of the previous day) * volume of the current day
If measure the force of the price change.
If you calculate the exponential moving average of the last two days to smooth the signal EMA(EFI,2), you have a nice buy/sell indicator in the context of the "Elder Triple Screen Method":
- If you are in a long term uptrend (for example ema(13) going up), you have a buy signal if EFI(2)<0, because then you have a short term downtrend in a long term uptrend. Put a "stop buy" a bit higher in case the long term uptrend continues.
- If you are in a long term downtrend (for example ema(13) going down), you have a sell signal if EFI(2)>0, because then you have a short term uptrend in a long term downtrend. Put a "stop sell" a bit lower in case the long term downtrend continues.
This graph shows you colored columns for the EMA(EFI,2), which is more visible than the one-color indicator provided by default by TV.
You can also display the EFI itself on top of the columns. (optional, I personaly do not use it)
PS: ema(13) is to make the explanation simple. Personaly, I use MACD histogram on a weekly view to define if I am on a long term uptrend or downtrend.
EFI
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
EFI 13 8study(title="EFI", shorttitle="EFI")
XLen1 = input(13, minval=1)
XLen2 = input(8, minval=1)
hline(0, color=gray, linestyle=line)
xValue = volume * (close - close )
xSMA1 = ema(xValue, XLen1)
xSMA2 = ema(xValue, XLen2)
plot(xSMA1, style = columns, color=aqua, title="SlowAvg")
plot(xSMA2, color=white, title="FastAvg")
Hull MACD with Force Index Backcolorswww.tradingview.com
Like many other indicators this tells the past and it will dutifully follow the future price changes whatever they will be.
This is an upgrade of the "Hull Moving Average Convergence/Divergence" low lag indicator in my scripts. Added Elder Force Index (background colors) to include effects of Volume.
When EFI goes positive the background goes green, when it slopes up (more positive than previous bar) it is darker green. Negative red and slope down darker red.
I find it useful in all time frames but I use mostly hour and day. The direction color combined with price action and macd tell whether the volume supports the price movement and the shading (darker green for increasing up volume and darker red for increasing down volume) tells of the degree of support.
Since when the EFI is positive and dropping, for example, the price can be dropping with opposite for negative.
Dark shading tells where the EFI and possibly the price is headed (at the moment).
Light shading says to check more on other indications for likely direction.
Changed also the histogram color so it stands out of background and added hlines to make relative volatility and peak height easier to see.
Anyway help yourself if any of this code is useful to you, enjoy, happy trading and Keep Smiling!