Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.
The calculation algorithm is close to that of the indicator OBV. But in OBV we add the whole daily volume to the current indicator value when close prices are higher, and detract the whole volume when close prices are lower, while in PVT we add or detract just a part of daily volume. The exact part of the volume to be added to PVT is determined by the value of price change relatively to the close price of the previous day.
In OBV, the cumulative total volumes for each period are summed. However, in PVT, the volume is multiplied by the coefficient that depends on the difference between the current close price and the previous one. The picture below shows that the behaviors of both indicators are quite correlated:
Watch in-depth trading tutorials and EA reviews on the RobotFX YouTube channel. Subscribe for free tips.

Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.
7061