Formaciones en Expansión
Forums › ProRealTime foro Español › Soporte ProScreener › Formaciones en Expansión
- This topic has 2 replies, 2 voices, and was last updated 11 hours ago by
Maricarmen.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
03/05/2025 at 11:24 PM #244694
Hola:
Se podría hacer del Screener del indicador que detallo a continuación.
Gracias.
03/06/2025 at 4:06 PM #244732Sería así:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899period=9leftbars=periodrightbars=period//max(1,floor(period/2))src1 = lowsrc2 = high//---Pivots Lowif src1 > src1[rightbars] and lowest[rightbars](src1) > src1[rightbars] and src1[rightbars] < lowest[leftbars](src1)[rightbars+1] thenif $Type[z]=-1 and src1[rightbars]<$Py[z] then$Py[z]=src1[rightbars]$Px[z]=barindex[rightbars]else$Py[z+1]=src1[rightbars]$Px[z+1]=barindex[rightbars]$Type[z+1]=-1z=z+1endif//y=(x-x1)*slope+y1if $Py[z]<$Py[max(0,z-2)] then$slope[z]=($Py[z]-$Py[max(0,z-2)])/($Px[z]-$Px[max(0,z-2)])endifendif//---Pivots Highif src2 < src2[rightbars] and highest[rightbars](src2)<src2[rightbars] and src2[rightbars]>highest[leftbars](src2)[rightbars+1] thenif $Type[z]=1 and src2[rightbars]>$Py[z] then$Py[z]=src2[rightbars]$Px[z]=barindex[rightbars]else$Py[z+1]=src2[rightbars]$Px[z+1]=barindex[rightbars]$Type[z+1]=1z=z+1endif//y=(x-x1)*slope+y1if $Py[z]>$Py[max(0,z-2)] then$slope[z]=($Py[z]-$Py[max(0,z-2)])/($Px[z]-$Px[max(0,z-2)])endifendif//Up Trendlineif islastbarupdate thencrossedline=0setupup=0for i=z downto 4 doif $Type[i-1]=1 and $Type[i-3]=1 thenif $Py[i-1]>$Py[i-3] thenx1=$Px[i-3]y1=$Py[i-3]x2=$Px[i-1]y2=$Py[i-1]for j=$Px[i-1]+1 to barindex dox3=jy3=y1+(x3-x1)*$slope[i-1]if close[barindex-j]>y3 thencrossedline=1breakendifnextx = barindexy = y1+(x-x1)*(y2-y1)/(x2-x1)if crossedline=0 and high>y and low<y thensetupup=1endifendifendifnextendif//Down Trendlineif islastbarupdate thencrossedline=0setupdn=0for i=z downto 4 doif $Type[i-1]=-1 and $Type[i-3]=-1 thenif $Py[i-1]<$Py[i-3] thenx1=$Px[i-3]y1=$Py[i-3]x2=$Px[i-1]y2=$Py[i-1]for j=$Px[i-1]+1 to barindex dox3=jy3=y1+(x3-x1)*$slope[i-1]if close[barindex-j]>y3 thencrossedline=1breakendifnextx = barindexy = y1+(x-x1)*(y2-y1)/(x2-x1)if crossedline=0 and high>y and low<y thensetupdn=-1endifendifendifnextendifscreener[setupup or setupdn]Te saldrán muy pocos valores porque le estás pidiendo valores que van contrapendiente.
2 users thanked author for this post.
03/06/2025 at 10:25 PM #244736Gracias Ivan, veo que tienes razón pues cargue el Screener y no me devolvió nada. Seguiré probando para ver que es lo que hace, pues en los gráficos compruebo que si marca los segmentos de unión de 2 o más mínimos.
Entendiendo que si el gráfico marca el segmento, en algún momento el Screener nos tendrá que devolver algo.
.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)