Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Indicador EMA+VWAP.

Configuración de consola TradingView

study(title="EMA+VWAP", overlay=true)

//Input Menus

Input1 = input(7, "First EMA")

Input2 = input(14, "Second EMA")

Input3 = input(50, "Third EMA")

Input4 = input(200, "Fourth EMA")

shortest = ema(close, Input1)

short = ema(close, Input2)

longer = ema(close, Input3)

longest = ema(close, Input4)

cumulativePeriod = input(20, "VWAP Period")

typicalPrice = (high + low + close) / 3

typicalPriceVolume = typicalPrice * volume

cumulativeTypicalPriceVolume = sum(typicalPriceVolume, cumulativePeriod)

cumulativeVolume = sum(volume, cumulativePeriod)

vwapValue = cumulativeTypicalPriceVolume / cumulativeVolume

plot(vwapValue, "VWAP", color = aqua, transp=0)

plot(shortest,"First EMA", color = green, transp=0)

plot(short, "Second EMA", color = yellow, transp=0)

plot(longer, "Third EMA", color = red, transp=0)

plot(longest,"Fourth EMA", color = white, transp=0)

You might also like