Herrick Payoff Index

Category: Indicators By: TACBOLSA Created: June 1, 2018, 7:55 AM
June 1, 2018, 7:55 AM
Indicators
12 Comments

The Herrick Payoff Index is designed to show the amount of money flowing into or out of a futures contract. The Index uses open interest during its calculations, therefore, the security being analyzed must contain open interest.

The Herrick Payoff Index was developed by John Herrick.


Interpretation

When the Herrick Payoff Index is above zero, it shows that money is flowing into the futures contract (which is bullish). When the Index is below zero, it shows that money is flowing out of the futures contract (which is bearish).

The interpretation of the Herrick Payoff Index involves looking for divergences between the Index and prices.

/////////////////////////////////////////////////////////////////////////////////////////////////////////

//TAC Volume HPI 10.3 | indicator
//01.01.2018
//RB @ www.tiburonesdealetacorta.com
//Sharing ProRealTime
/////////////////////////////////////////////////////////////

oi = close
openinterestdiff = oi - oi[1]
I = abs(openinterestdiff)
G = max(oi, oi[1])
S = 10
C = 100
v = volume
M = (high + low) / 2
My = M[1]
Ky = HPI[1]
K1 = (C*V*(M - My))*(1 + ((2 * I)/(G)))
K2 = (C*V*(M - My))*(1 - ((2 * I)/(G)))

IF M>MY THEN
 HPI = ((Ky +(K1 - Ky)) * S)/100000
elsif M<MY then
 HPI = ((Ky +(K2 - Ky)) * S)/100000
endif

HPIIndex = 100 * (HPI - lowest[100](HPI))/(highest[100](HPI) - lowest[100](HPI))

wma =WeightedAverage[21](HPI)
MM = weightedaverage[150](wma)

if wma <= HPIIndex[1] then
 r=128
 g=0
 b=0
else
 r=0
 g=128
 b=0
endif

return wma coloured (r,g,b) style(line,3) as "Herrick Payoff Index",mm coloured (r,g,b) as "SR HPI",HPIIndex COLOURED(102,102,102) as "cero"

 

Download
Filename: Herrick-Payoff-Index.itf
Downloads: 399
TACBOLSA Master
Analista independiente y programador de indicadores.
Author’s Profile

Comments

Logo Logo
Loading...