TradingView
williamzhao78
Aug 5, 2020 9:19 AM

Any one could help me on the EMV Pine script ? 

Bitcoin / United States DollarCoinbase

Description

Dear guys, I am new for pine script, could you pls hlep to correct it ?

//@version=4
study("EMV")
kk = sma(volume,14)/volume;
mid =100*((high+low-(high+low)[1]))/(high+low);
emv = sma(mid*kk*(high-low)/sma(high-low,14),14);
memv = sma(emv,9);

B1 = plot(EMV,color=color.blue)
B2 = plot(MAEMV,color=color.red)

hline(0, color=color.green, title="Zero Line")
More