TradingView
ukn089
Feb 6, 2021 12:59 PM

irctc Long

INDIAN RAIL TOUR CORP LTDNSE

Description

irctc
Comments
tradetechnicalanalyst
IT MAY TEST 1730+ MUTUAL FUND BUYING SEEN
ashishtambe
Thanks for the chart. use these codes so all the three moving averages are in one and even you will get the VWP also you can change the time frame of vwap..enjoy
ukn089
thanks for you
ashishtambe
//@version=4
study("ASHISH EMA Method", overlay=true)
p = input(true, title="PEMA")

//PEMA
FastMA=input(defval=21)
MiddleMA=input(defval=34)
SlowMA=input(defval=55)
SlowestMA=input(defval=200)
s = input(close, title="Source")
a = input("D", type=input.resolution, title="Time Frame")
t = time(a)

ema21=ema(hlc3,FastMA)
ema34=ema(hlc3,MiddleMA)
ema55=ema(hlc3,SlowMA)
ema200=ema(hlc3,SlowestMA)
start = na(t[1]) or t > t[1]
sumSrc = s * volume
sumVol = volume
sumSrc := start ? sumSrc : sumSrc + sumSrc[1]
sumVol := start ? sumVol : sumVol + sumVol[1]

plot(sumSrc / sumVol, title="VWAP", color=color.blue)
p11=plot(p and ema21 ? ema21:na,color=hlc3[1] > ema21 and hlc3 > ema21 ? color.green : color.red, linewidth=2)
p22=plot(p and ema34 ? ema34:na,color=#bdb76b,linewidth=2)
p33=plot(p and ema55 ? ema55:na,color=hlc3[1] < ema55 and hlc3 < ema55 ? color.red : color.green, linewidth=2)
p200=plot(p and ema200 ? ema200:na,color=hlc3[1] < ema55 and hlc3 < ema55 ? color.red : color.green, linewidth=2)
fill(p11, p33, color=ema21>ema55 ? color.green:color.red, transp=85, editable=true )
More