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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
// 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 |
–
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
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