Professional Documents
Culture Documents
Vwap Afl Code
Vwap Afl Code
_SECTION_BEGIN("ATP");
B=Volume;
A=Avg;
Value=B*A;
Barsfromtodaybegin = 1 + BarsSince( Day() != Ref(Day(), -1));
Totalvalue=Sum(Value,Barsfromtodaybegin);
Totalvolume=Sum(V,Barsfromtodaybegin);
ATP=(Totalvalue/Totalvolume);
Plot(PATP,"P.ATP",colorViolet,styleDots,styleLine,styleThick);
_SECTION_END();