mydistanciaPV, ignored = CALL "DISTANCIA MM30PV"
mydistancia, ignored = CALL "Distancia MM30"
ignored, ignored, ignored, mfuerte, ignored, ignored, ignored, ignored = CALL "Blai5 Koncorde v.09"
rem acuerdese de que si usa la versión nueva del Koncorde debe añadir [15]
rem despues de Blai5 Koncorde v.09. Además va todo en la misma linea
myCPM = CALL "Capital proporcional medio" [52]
Promedio = ( myCPM + myCPM[1] + myCPM[2] ) / 3
mm30 = WeightedAverage [30] ( close)
cap = volume * close
c1 = 0
if (mydistancia < 3 and ( mfuerte > 5 and Promedio > 5 ) ) then
c1 = 1
endif
c2 = 0
if ( mydistanciaPV < 7 and MM30 < close and MM30 > MM30 [1] ) then
c2 = 1
endif
c3 = 0
if CLOSE[1] < OPEN[1] AND OPEN < CLOSE[1] AND CLOSE > OPEN[1] then
c3 = 1
endif
SCREENER [ ( c1 > 0 AND c2 > 0 AND c3 > 0 AND cap > 1000000 ) ](mydistanciaPV AS "Riesgo stop")