Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=61222
Forum: 17 · Topic 61222 · 3 post(s)
Apprentice · Mon Sep 22, 2014 11:47 am

Colby (in his book The Encyclopedia of Technical Market Indicators, 2nd. ed., McGraw-Hill, 2003, pg. 774) notes that “As with simple momentum indicators generally, when the n-period exponential moving average of V*PMO is positive, momentum is bullish, so we buy, entering or initiating a long position.”
Code: Select all `First, calculate today’s V*PMO input value:
VTODAY * (CPTODAY – CPTODAY-1)
where
VTODAY = today’s volume CPTODAY = today’s closing price CPTODAY-1 = yesterday’s closing price
Then smooth the values using a 3-day exponential moving average (EMA):
V*PMO = EMA(3)(VTODAY,VTODAY-1,VTODAY-2)`
Volume Price Momentum Oscillator.lua
The indicator was revised and updated
Alexander.Gettinger · Wed Apr 08, 2015 11:33 am
MQL4 version of oscillator: viewtopic.php?f=38&t=62089.
Apprentice · Tue Aug 08, 2017 5:33 am
The indicator was revised and updated.