Blai5 CazaGaps

Category: Indicators By: Nicolas Created: March 3, 2016, 12:06 PM
March 3, 2016, 12:06 PM
Indicators
0 Comments

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"

 

Download
Filename: Blai5-CazaGaps.itf
Downloads: 144
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...