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"
You must be logged in to post a comment.
A question for Tac Bolsa: I enclose a mini S & P photo made with my HPI index and I detect these differences 1) I do not see the same divergence between the end of January 18 and early February; 2) the 0 line is dynamic in my window and is worth 68,422! Should it be set in a way that has not been described on prorealcode or did I make any mistakes?
Buenas tardes. Como puedo descargar algunos indicadores de esta pagina ?