“lucasmeilleurs ” – Indicateur de configuration 1-2-3
Forums › ProRealTime forum Français › Support ProBuilder › “lucasmeilleurs ” – Indicateur de configuration 1-2-3
- This topic has 2 replies, 3 voices, and was last updated 11 months ago by larouedegann.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
12/19/2023 at 1:12 PM #225430
Bonjour a tous,
je suis en train de tester un indicateur de “lucasmeilleurs ” intitulé Indicateur de configuration 1-2-3″ quand je tente de tester cette indicateur un message d’erreur apparait ;
– Définissez la variable : prd, showBreak, showPattern, showPvts
pouvez vous me dire ce que je dois rajouter dans ces variables pour l’indicateur fonctionne, je vus mets le code source de l’indicateur
Indicateur de configuration 1-2-3123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101//---Initialisationonce idx0 = 0once idx1 = 0once idx2 = 0once pos = 0ATR = AverageTrueRange[prd](typicalprice)IF barindex >= 2*prd+1 thenIf high[prd] >= highest[2*prd+1](high) and pos<=0 thenIf idx1 <> 0 thenidx2 = idx1EndifIf idx0 <> 0 thenidx1 = idx0Endifidx0 = barindex[prd]pos=1If idx2<>0 thenIf showPvts thenIf High[barindex-idx0]>=High[barindex-idx2] thenDRAWTEXT("HH",idx0,High[barindex-idx0]+ATR/2,Dialog,Bold,20) coloured(200,0,0,255)elseDRAWTEXT("LH",idx0,High[barindex-idx0]+ATR/2,Dialog,Bold,20) coloured(200,0,0,255)EndifEndifEndifEndifIf Low[prd] <= Lowest[2*prd+1](low) and pos>=0 thenIf idx1 <> 0 thenidx2 = idx1EndifIf idx0 <> 0 thenidx1 = idx0Endifidx0 = barindex[prd]pos=-1If idx2<>0 thenIf showPvts thenIf Low[barindex-idx0]>=Low[barindex-idx2] thenDRAWTEXT("HL",idx0,Low[barindex-idx0]-ATR/2,Dialog,Bold,20) coloured(0,200,0,255)elseDRAWTEXT("LL",idx0,Low[barindex-idx0]-ATR/2,Dialog,Bold,20) coloured(0,200,0,255)EndifEndifEndifEndifIf idx2<>0 thenIf pos=1 and High[barindex-idx0]>Low[barindex-idx1] and High[barindex-idx0]<High[barindex-idx2] and (Close<Low[barindex-idx1] and open>Low[barindex-idx1]) thenIf showPattern thenDRAWTEXT("1",idx2,High[idx2]+ATR[Barindex-Idx2]/2,Dialog,Bold,20) coloured("BLUE",255)DRAWTEXT("2",idx1,Low[barindex-idx1]-ATR[Barindex-Idx1]/2,Dialog,Bold,20) coloured("BLUE",255)DRAWTEXT("3",idx0,High[barindex-idx0]+ATR[Barindex-Idx0]/2,Dialog,Bold,20) coloured("BLUE",255)DRAWSEGMENT(idx2,High[barindex-idx2],idx1,Low[barindex-idx1]) STYLE(Line,3) coloured("BLUE",255)DRAWSEGMENT(idx1,Low[barindex-idx1],idx0,High[barindex-idx0]) STYLE(Line,3) coloured("BLUE",255)EndifIf showBreak thenDRAWSEGMENT(idx1,Low[barindex-idx1],barindex+1,Low[barindex-idx1]) STYLE(DOTTEDLINE2,2) coloured("BLUE",255)DRAWARROWDOWN(barindex,High+ATR/2) coloured("RED",255)EndifEndifIf pos=-1 and Low[barindex-idx0]<High[barindex-idx1] and Low[barindex-idx0]>Low[barindex-idx2] and (Close>High[barindex-idx1] and open<High[barindex-idx1]) thenIf showPattern thenDRAWTEXT("1",idx2,Low[barindex-idx2]-ATR[Barindex-Idx2]/2,Dialog,Bold,20) coloured("BLUE",255)DRAWTEXT("2",idx1,High[barindex-idx1]+ATR[Barindex-Idx1]/2,Dialog,Bold,20) coloured("BLUE",255)DRAWTEXT("3",idx0,Low[barindex-idx0]-ATR[Barindex-Idx0]/2,Dialog,Bold,20) coloured("BLUE",255)DRAWSEGMENT(idx2,Low[barindex-idx2],idx1,High[barindex-idx1]) STYLE(Line,3) coloured("BLUE",255)DRAWSEGMENT(idx1,High[barindex-idx1],idx0,Low[barindex-idx0]) STYLE(Line,3) coloured("BLUE",255)EndifIf showBreak thenDRAWSEGMENT(idx1,High[barindex-idx1],barindex+1,High[barindex-idx1]) STYLE(DOTTEDLINE2,2) coloured("BLUE",255)DRAWARROWUP(barindex,Low-ATR/2) coloured("GREEN",255)EndifEndifEndifEndifReturnmerci beaucoup de votre aide
cdlt
12/19/2023 at 1:49 PM #22543312/19/2023 at 7:06 PM #225481il vaut mieux télécharger le fichier itf
1 user thanked author for this post.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)