lolo

Directional Volume

Category: Indicators By: lolo Created: October 12, 2015, 8:14 PM
October 12, 2015, 8:14 PM
Indicators
1 Comment
Directional Volume

Attempt to correct the OBV.
The OBV credits the whole volume of the day to the winning direction.
This indicator only credits the portion of the volume that is guessed to have gone in the right direction.

REM Directional volume accumulation

REM ldist: Price Distance
ldist = 2 * (HIGH - LOW) - ABS(CLOSE - OPEN) + ABS(OPEN - CLOSE[1])

IF ldist = 0 THEN
     inc=0
ELSE
     inc = VOLUME * (CLOSE - CLOSE[1]) / ldist
ENDIF

RETURN CUMSUM(inc) AS"Directional Volume"

Download
Filename: Directional-Volume.itf
Downloads: 135
lolo
lolo Average
I usually let my code do the talking, which explains why my bio is as empty as a newly created file. Bio to be initialized...
Author’s Profile

Comments

Rory Dryden
8 years ago
#

Initial viewing of this on SPY shows promise.

ProRealCode ProRealCode
Loading...