Algorithmic Trading: Implementing Pvol In Discrete Time