PP fractas lines Screener
Forums › ProRealTime forum Français › Support ProScreener › PP fractas lines Screener
- This topic has 7 replies, 2 voices, and was last updated 3 years ago by Nicolas.
-
-
03/09/2021 at 10:59 AM #163583PP fractal lines indicator123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103//PP Fractals v1.2//PRT v11//By Vonasi//Date: 20201217defparam drawonlastbaronly = true//SettingsBarsBefore = 1BarsAfter = 1Support = 1Resistance = 1Points = 1//Make sure all settings are valid onesBarsBefore = max(BarsBefore,1)BarsAfter = max(BarsAfter,1)StartBack = max(0,startback)if barindex >= barsbefore + barsafter then//Look for a low fractalBarLookBack = BarsAfter + 1if low[BarsAfter] < lowest[BarsBefore](low)[BarLookBack] THENif low[BarsAfter] = lowest[BarLookBack](low) THENa = a + 1$supportbar[a] = barindex[barsafter]$supportvalue[a] = low[barsafter]endifendif//Look for a high fractalif high[BarsAfter] > highest[BarsBefore](high)[BarLookBack] THENif high[BarsAfter] = highest[BarLookBack](high) THENb = b + 1$resistancebar[b] = barindex[barsafter]$resistancevalue[b] = high[barsafter]endifendifif islastbarupdate then//support lineif a >= 2 thenif support thenflag = 0zz = 0for z = a-zz downto 1for xx = 1 to aif z-xx < 1 thenbreakendifif $supportvalue[z] > $supportvalue[z-xx] thendrawray($supportbar[z-xx],$supportvalue[z-xx],$supportbar[z],$supportvalue[z]) coloured(128,0,0)if points thendrawpoint($supportbar[z],$supportvalue[z],2) coloured(128,0,0)drawpoint($supportbar[z-xx],$supportvalue[z-xx],2) coloured(128,0,0)endifflag = 1breakendifzz = zz + 1nextif flag = 1 thenbreakendifzz = 0nextendifendif//resistance lineif b >= 2 thenif resistance thenflag = 0zz = 0for z = b-zz downto 1for xx = 1 to bif z-xx < 1 thenbreakendifif $resistancevalue[z] < $resistancevalue[z-xx] thendrawray($resistancebar[z-xx],$resistancevalue[z-xx],$resistancebar[z],$resistancevalue[z]) coloured(0,128,0)if points thendrawpoint($resistancebar[z],$resistancevalue[z],2) coloured(0,128,0)drawpoint($resistancebar[z-xx],$resistancevalue[z-xx],2) coloured(0,128,0)endifflag = 1breakendifzz = zz + 1nextif flag = 1 thenbreakendifzz = 0nextendifendifendifendifreturn
Bonjour à tous, j’ai découvert cet indicateur qui est super ici, je m’en sers bcp, je me demande si c’est possible de l’utiliser en screener et y ajouter une règle de vol mini et prix max/mini.
Merci et bravo à vous pour votre travail
03/09/2021 at 1:09 PM #16360303/09/2021 at 1:21 PM #16360503/09/2021 at 1:37 PM #16360903/09/2021 at 1:51 PM #16361203/09/2021 at 3:27 PM #163625Ma question, c’est de savoir si tu veux tester la cassure du niveau de prix où tu vois un point vert ou rouge sur ton image (un point fractal) ou le franchissement d’une ligne verte ou rouge (droite de tendance créé à l’aide de 2 points fractals) ?
03/09/2021 at 3:34 PM #16362603/10/2021 at 11:04 AM #163702ok, ce ne sera pas possible avec ce code car il utilise des variables en tableaux non compatible avec ProScreener, en revanche tu pourras trouver quelque chose de semblable dans cet autre sujet du forum : https://www.prorealcode.com/topic/trendline-une-approche-du-trading/
-
AuthorPosts
Find exclusive trading pro-tools on