Hello my dear friend. Still not correct. It does not look like the one in the book. Now it looks exactly like price, but inverted, practically 100% inverse correlation. Have you read the book and that article that I sent you? You just need to read chapter 1, and it is not long. Here in the article, as I told you, there is the implemented formula, and also tells you how to separate between Large Effective Volume and Small Effective Volume, which we also need.
The screenshots posted here in the article does not look like the indicator you coded:
https://sharetips.ch/effective-volume/Here the screenshots I took now, you can see it just mirrors price: