Skip to main content

z-distance form vwap for Amibroker (AFL)

nasta about 15 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    oscillator, amibroker

calculates normal distance form vwap. Use to identify overstretch and possible turning points.

Screenshots

Indicator / Formula

Copy & Paste Friendly
// Z distance from vwap
function zvwap(pds)
{
mean = Sum(V*C,pds)/Sum(V,pds);
vwapsd = sqrt(MA((C-mean)^2, pds) );
zevwap=(C-mean)/Vwapsd;
return zevwap;
}

Plot(zvwap(22),"z-dist vwap",colorBlue,styleLine);
PlotGrid(0,1);
PlotGrid(1,1);
PlotGrid(2,1);
PlotGrid(-1,1);
PlotGrid(-2,1);

1 comments

Leave Comment

Please login here to leave a comment.