OPEN-SOURCE SCRIPT

Colored Columns for Elder's Force Index EMA

The 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.
coloredEFIExponential Moving Average (EMA)OscillatorsVolume

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明