Buenas tardes
quería, por favor ayuda, para programar un screener. El concepto es el siguiente:
- Partiendo de dos screener independientes quisiera unirlos en uno solo y que se cumplan las dos condiciones de búsqueda. Estos son los dos screeners
// PROSCREENER BLAI5 ESPEJO KONCORDE v10
// DETECCIÓN SOBRE LAS 10 ÚLTIMAS VELAS
// Febrero 2014
//mymarron, myverde, myazul, mymedia, mycero = CALL “Blai5 Koncorde v.10”
marro, verd, blau, med, ignored = CALL “Blai5 Koncorde v.10”
FOR i=0 TO 10 DO
dif = med[i] – marro[i]
mvol = ExponentialAverage[20](volume)
c1 = verd[i] < 0
c2 = blau[i] > 0
c3 = mvol[i] > 10000
SCREENER[c1 AND c2 AND c3] (dif AS “Dif”)
NEXT
–
c1 = high crosses over HighFractal
//----- Highs -----
ONCE HighCount = Undefined
ONCE HighFractal = Undefined
IF (High > High[1]) AND (High > High[2]) THEN
HighLevel = High
ENDIF
IF (High < HighLevel) THEN
HighCount = HighCount - 1
ELSIF (High >= HighLevel) THEN
HighCount = 0
ENDIF
IF HighCount = -2 THEN
HighFractal = HighLevel
ELSE
HighFractal = HighFractal
ENDIF
screener [c1]
Muchas gracias por su ayuda.
saludos
Hola al final nadie te dió la solución para poder unir dos screener distintos?
Hola
Para unir 2 screeners sólo hay que copiar el código de ambos dentro del mismo screener y añadir una condición adicional.
Por ejemplo, el primer screener tiene 3 condiciones c1,c2 y c3. El segundo screener tiene sólo 1 condición. Cambiamos el nombre de ésta para que no coincidan (c1 por c4).
c4=high crosses over highfractal
screener[c1 and c2 and c3 and c4]
Muchas gracias por tu respuesta.
Saludos