CazaGaps a tool to identify the number and strength of the GAPS OPENING that have occurred in an index or value.
Basically intended as an analysis tool, applied on an index helps to identify:
Marcagap: in which sessions have produced gaps opening upward or downward,
Gapforce: its amplitude points
Close to Open Dif. The difference in points between closing and opening, regardless of whether there has been no gap or opening.
Balance DC / VA: accumulated balance would get if we bought at the end and we sold on opening of the next session for “s” sessions (default is 20)
(explanation translated from spanish).
REM CazaGaps por Blai5
REM Julio 2006
//parameters :
// s = 20
cero = 0
marcagap = 0
gapforce = 0
if open > close[1] and open > high[1] then
marcagap = 1
gapforce = open - close[1]
elsif open < close[1] and open < low[1] then
marcagap = -1
gapforce = open - close[1]
endif
ctopen = open - close[1]
bal = summation [s](ctopen)
rem tamaño
factor1 = highest [90] (bal)
factor2 = ABS (lowest [90] (bal))
factor = MAX (factor1, factor2)/2
marcagap = marcagap * factor
return cero as "cero", marcagap as "MarcaGap", gapforce as "GapForce", ctopen as "Close to Open Dif.", bal as "Balance de CC/VA"