The eWMA is a moving average that use Volume to calculate its period. This moving average is a statistical measure of the Volume other time, which display nicely the price direction. Originally developped by Christian P. Fries, I added here a “kind of” band for buy/sell triggers or trend filtering purpose.
The band is made of the highest high or the lowest low of the eWMA. Trend direction change when the eWMA piercing its own value, back to N previous period.
This indicator needs instruments with Volume for calculation.
//parameters :
// period = 20
// lookback = 10
IF BarIndex < period THEN
eVWMA = Close
ELSE
N = Summation[period](Volume)
eVWMA = ((N - Volume)*eVWMA + Volume*Close)/N
ENDIF
hh = highest[period](evWMA)
ll = lowest[period](evWMA)
if evWMA>hh[lookback] then
trend = ll
elsif evWMA<ll[lookback] then
trend = hh
endif
RETURN trend as "support resistance zone", evWMA as "elastic weigthed moving average"