effective volume

Good night my friend, i want to create afl with formula this one, who people can create this , thanks u efvol

Close(i-1) is previous bar's Close price which can be retrieved by using Ref() function.
The rest is easy too as Max() and Min function exist in AFL as well.
So you just have to insert.

PI = 0.01;
prevClose = Ref(Close,-1);

hh = Max(prevClose,High);
ll = Min(prevClose,Low);

num = prevClose - Close + PI;
denom = hh - ll + PI;

effVol = num / denom * Volume;

As for plotting effVol you may do yourself.
See function reference here. You might want to use styleHistogram as fourth function argument.

3 Likes

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.