Volume Z-Score

User avatar
dataheck
Posts: 30
Joined: 19 Nov 2019
Location: Amherst, Nova Scotia
Been thanked: 5 times
Contact:

Volume Z-Score

Postby dataheck » 04 Mar 2020

Put the current volume into context based on the standard deviation of volume and the average to turn absolute volume into a z-score of volume.

Has a parameter "skip_current" which if true only compares the prior close to the standard deviation/average - at open you'll obviously see very little volume, so it's kind of meaningless at that point.

It has a flaw: I am not removing the latest close from the series that the standard deviation and average are computed on. Not sure exactly how I should approach that and I think it won't change the result too severely so long as the length setting is reasonably high.

e:

Updated to avoid arithmetic overflow, which can occur for some data series, especially when the volume tends to report "0".
Attachments
Volume_ZScore.pln
(1.61 KiB) Downloaded 283 times

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: Volume Z-Score

Postby Emmanuel » 30 Apr 2020

good idea ! thank you


Return to “User Contributed Studies”