EFI_Moving_avg
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © keymaker67

//@version=5
indicator("EFI_Moving_avg", overlay= false, format=format.volume)

length = input.int(defval=10 ,step=5)

efi = ta.ema(ta.change(close) * volume, 14)

ema = ta.ema(ta.ema(ta.ema(efi, length), length), length)

plot(efi, color=efi > ema ? color.aqua : color.gray, title="Elders Force Index")

plot(ema, color=ema > 0 ? color.lime : #F44336, title="Elders Force Index")

hline(0, color=#787B86, title="Zero")
