Máximo numero de velas rojas en proscreener bajista
Forums › ProRealTime foro Español › Soporte ProScreener › Máximo numero de velas rojas en proscreener bajista
- This topic has 1 reply, 2 voices, and was last updated 3 years ago by JC_Bywan. 
		Viewing 2 posts - 1 through 2 (of 2 total)
	
	- 
	
		
- 
		
			
				
01/10/2022 at 10:59 PM #185047En el proscreener que he creado, quiero que en el diario, si las ultimas 5 velas son rojas, entonces que no salgan en el proscreener. En el semanal pensaba que lo tenia hecho y funcionaba, pero tal vez, no este bien, porque si lo copio en la parte del diario, no funciona. La variable es en semanal: velasRojas5ConsecutivasS Y en diario: velasRojas5ConsecutivasD 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168//SEMANALTIMEFRAME(weekly)patronW=0m1=0m2=0posicionMaxRev1=0//OBTENEMOS LOS MAXIMOS RELEVANTESfor i=3 to barindexEsmaximorelevante = (high[i]>=high[i-3]) AND (high[i]>=high[i-2]) AND (high[i]>=high[i-1]) AND (high[i]>=high[i+1]) AND (high[i]>=high[i+2]) AND (high[i]>=high[i+3])if Esmaximorelevante=1 thenif m1=0 thenm1=high[i]posicionMaxRev1=ielsem2=high[i]breakendifendifnext//NO QUEREMOS 5 VELAS ROJAS CONSECUTIVASvelasRojas5ConsecutivasS=0for a=0 to 4if close[a] > open[a] thenvelasRojas5ConsecutivasS=1breakendifnext//MAXIMOS RELEVANTES DESCENDENTESpatronW = (m1<m2 and velasRojas5ConsecutivasS) //tendencia bajista//MIRO QUE NO HAYA NINGUN CIERRE POR ARRIBA DESDE HOY HASTA EL MAXIMO RELEVANTEfor j=0 to posicionMaxRev1if close[j] > m1 thenpatronW=0breakendifnext//DIARIOTIMEFRAME(daily)patronD=0if patronW thenavgv20 = average[20](volume)avgv50 = average[50](volume)avgv100 = average[100](volume)avgv200 = average[200](volume)minimoVolumen = avgv20>VolumenK*1000 and avgv50>VolumenK*1000 and avgv100>VolumenK*1000 and avgv200>VolumenK*1000if minimoVolumen=1 thenm1=0m2=0posicionMaxRev1D=0maximosRelevantesSuperiorM20=0//OBTENEMOS LOS MAXIMOS RELEVANTES Y COMPROBAMOS SI ESTAN POR ENCIMA DE LA M20for i=3 to barindexEsmaximorelevante = (high[i]>=high[i-3]) AND (high[i]>=high[i-2]) AND (high[i]>=high[i-1]) AND (high[i]>=high[i+1]) AND (high[i]>=high[i+2]) AND (high[i]>=high[i+3])if Esmaximorelevante=1 thenif m1=0 thenm1=high[i]posicionMaxRev1D=imaximosRelevantesSuperiorM20 = close[i] > average[20][i]elsem2=high[i]breakendifendifnext//NO QUEREMOS 5 VELAS ROJAS CONSECUTIVASvelasRojas5ConsecutivasD=0for a=0 to 4if close[a] > open[a] thenvelasRojas5ConsecutivasD=1breakendifnext//QUEREMOS QUE LOS MAXIMOS RELEVANTES SEAN DECRECIENTES ADEMAS DE QUE ESTE POR DEBAJO DE LA M20patronD = (m1<m2 and maximosRelevantesSuperiorM20=0 and velasRojas5ConsecutivasD)//SI HAY CIERRE POR DEBAJO DE LOS 2 ANTERIORES MINIMOS RELEVANTES, ENTONCES YA ESTAMOS EN ETAPA 4min1=0min2=0minRelevante=0posicionMinRelevante1=0posicionMinRelevante2=0for i=3 to barindexEsmimimorelevante = (low[i]<=low[i-3]) AND (low[i]<=low[i-2]) AND (low[i]<=low[i-1]) AND (low[i]<=low[i+1]) AND (low[i]<=low[i+2]) AND (low[i]<=low[i+3])if Esmimimorelevante=1 thenif min1=0 thenmin1=low[i]minRelevante=min1posicionMinRelevante1=ielsemin2=low[i]posicionMinRelevante2=ibreakendifendifnextif(min2<min1)thenminRelevante=min2posicionMinRelevante1=posicionMinRelevante2endiffor k=0 to posicionMinRelevante1if close[k] < minRelevante thenpatronD=1breakendifnext//MIRO QUE NO HAYA NINGUN CIERRE POR ARRIBA DESDE HOY HASTA EL MAXIMO RELEVANTEfor j=0 to posicionMaxRev1Dif close[j] > m1 thenpatronD=0breakendifnextendif //volumenif patronD thenTIMEFRAME(1hour)patron=0//v1.3 solo comprobamos el patron si cumple el volumenavgv20 = average[20](volume)avgv50 = average[50](volume)avgv100 = average[100](volume)avgv200 = average[200](volume)minimoVolumen = avgv20>VolumenK*100 and avgv50>VolumenK*100 and avgv100>VolumenK*100 and avgv200>VolumenK*100mm20h = average[20](close)if(mm20h<mm20h[1] and mm20h[1]<mm20h[2] and mm20h[2]<mm20h[3])thencM20dNegativa=1elsecM20dNegativa=0endifif minimoVolumen=1 and cM20dNegativa=1 thenm1=0m2=0for i=3 to barindexEsmimimorelevante = (low[i]<=low[i-3]) AND (low[i]<=low[i-2]) AND (low[i]<=low[i-1]) AND (low[i]<=low[i+1]) AND (low[i]<=low[i+2]) AND (low[i]<=low[i+3])if Esmimimorelevante=1 thenif m1=0 thenm1=low[i]elsem2=low[i]breakendifendifnextpatron = (m1<m2) //tendencia bajistaif patron then//v1.5 modificamos la verificacion de tendencia alcista, comprobamos 2 ultimos maximos crecientesm1=0m2=0for i=3 to barindexEsmaximorelevante = (high[i]>=high[i-3]) AND (high[i]>=high[i-2]) AND (high[i]>=high[i-1]) AND (high[i]>=high[i+1]) AND (high[i]>=high[i+2]) AND (high[i]>=high[i+3])if Esmaximorelevante=1 thenif m1=0 thenm1=high[i]elsem2=high[i]breakendifendifnextpatron = ( m1<m2 ) //tendencia bajistaendifendifendifendif// Este código se relaciona con la siguiente unidad de tiempo:DEFAULTscreener[patron=1 and patronD=1 and patronW=1]01/11/2022 at 11:37 AM #185094
- 
		AuthorPosts
		Viewing 2 posts - 1 through 2 (of 2 total)
	
	
			Find exclusive trading pro-tools on 
 Similar topics:
						

 
		 
		 
		