Retracements de Fibonacci
Forums › ProRealTime forum Français › Support ProBuilder › Retracements de Fibonacci
- This topic has 15 replies, 3 voices, and was last updated 4 days ago by
RICOU.
-
-
06/07/2025 at 9:52 PM #24805006/08/2025 at 9:00 AM #248054
oui il y en a au moins 3 qui existent en Zigzag & Fibonacci Levels: Indicator for Detecting Key Market Levels, ou ZigZag Fibonacci levels ou Fibonacci 61.8% retracement
06/08/2025 at 12:13 PM #24806006/08/2025 at 2:04 PM #248065Il faut aller dans la recherche des mots clés en tapant fibonacci comme sur l’image jointe et tu auras tous les sujets concernant ta recherche.
06/08/2025 at 2:29 PM #24806706/08/2025 at 9:20 PM #248079En fait j’ai bien regardé mais ce n’est exactement ce que je recherche.
En effet, les codes proposés affichent des retracements basés sur un certain nombre de périodes mais ce que je recherche c’est un code qui prend en compte vraiment les derniers plus hauts et plus bas.
Merci
06/09/2025 at 8:41 AM #248080sinon il y a FIBO AUTO RETRAC DID dont voici le code:
ajouter les variables p=14
// FIBO AUTO RETRAC DID 01 juillet 2018
// d ‘ après Fibonacci auto channels PRC//parameters
// period = 14DefParam DrawOnLastBarOnly = true
ll = lowest[period](low)
hh = highest[period](high)
//mid = (ll+hh)/2fibo0 = (hh-ll)*1+ll
fibo1 = (hh-ll)*0.786+ll
fibo2 = (hh-ll)*0.618+ll
fibo3 = (hh-ll)*0.382+ll
fibo4 = (hh-ll)*0.500+ll
fibo5 = (hh-ll)*0.236+ll
fibo6 = (hh-ll)*0+lla=255
DRAWHLINE(fibo0) COLOURED(255,9,0,a)
DRAWHLINE(fibo1) COLOURED(255,9,0,a)
DRAWHLINE(fibo2) COLOURED(255,9,0,a)
DRAWHLINE(fibo3) COLOURED(0,128,0,a)
DRAWHLINE(fibo4) COLOURED(30,144,255,a)
DRAWHLINE(fibo5) COLOURED(0,128,0,a)
DRAWHLINE(fibo6) COLOURED(0,255,0,a)RETURN fibo1 as “fibo1 “, fibo2 as ” fibo2 “, fibo3 as ” fibo3 “, fibo4 as ” fibo4 “, fibo5 as ” fibo5 ” , customclose as ” customclose ” //mid as “center”,
06/09/2025 at 10:39 AM #248086Voyons si cela peut aider :
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174//----------------------------------------------------------------------------////PRC_ZigZag & Fibonacci levels//version = 0//26.06.24//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//----------------------------------------------------------------------------////-----Inputs-----------------------------------------------------------------//ZZpercent=1 //Boolean//Method for pivot points calculationprd=15 //Periods for Donchian Channel and pivot calculationpercent=5 //Percentage for zigzag calculationshowpastFib=1 //Boolean//shows all zigzag and Fibo levelsshowDN=1 //Boolean//shows fibo levels in a UptrendShowUP=0 //Boolean//shows fibo levels in a Downtrend//----------------------------------------------------------------------------//atr=averagetruerange[14](close) //Only drawing porpouse//----------------------------------------------------------------------------////-----Pivots High&Low--------------------------------------------------------//if ZZpercent then//-----Mode Percent--------------------------------------------------------//zz = zigzag[percent](close)ph = zz<zz[1] and zz[1]>zz[2]pl = zz>zz[1] and zz[1]<zz[2]//-----Mode Highest/lowest Values------------------------------------------//elseph = high=highest[prd](high)pl = low=lowest[prd](low)endif//----------------------------------------------------------------------------////-----Direction Calculation--------------------------------------------------//if ph and pl=0 thendir=1elsif pl and ph=0 thendir=-1elsedir=direndifdirchanged=dir<>dir[1]//----------------------------------------------------------------------------////-----Calculate Arrays for each pivot----------------------------------------//if ph or pl thenif dirchanged thenif dir=1 and not ZZpercent then$zigzag[t+1]=highest[prd](high)$zigzagidx[t+1]=barindex$dir[t+1]=1t=t+1elsif dir=-1 and not ZZpercent then$zigzag[t+1]=lowest[prd](low)$zigzagidx[t+1]=barindex$dir[t+1]=-1t=t+1elsif dir=1 and ZZpercent then$zigzag[t+1]=zz[1]$zigzagidx[t+1]=barindex[1]$dir[t+1]=1t=t+1elsif dir=-1 and ZZpercent then$zigzag[t+1]=zz[1]$zigzagidx[t+1]=barindex[1]$dir[t+1]=-1t=t+1endifelseif not ZZpercent thenif dir=1 and highest[prd](high)> $zigzag[t] then$zigzag[t]=highest[prd](high)$zigzagidx[t]=barindexelsif dir=-1 and lowest[prd](low)< $zigzag[t] then$zigzag[t]=lowest[prd](low)$zigzagidx[t]=barindexendifendifendifendif//----------------------------------------------------------------------------////-----Drawing conditions-----------------------------------------------------//if islastbarupdate then//-----Last Zig and Fibonacci Levels---------------------------------------//drawsegment($zigzagidx[max(0,t-1)],$zigzag[max(0,t-1)],$zigzagidx[t],$zigzag[t])if $dir[t]=1 then//-----Calculation when trend Up----------------------------------------//fib0=$zigzag[max(0,t-1)]fib100=$zigzag[t]diff=fib100-fib0fib0236=fib100-diff*0.236fib0382=fib100-diff*0.382fib0500=fib100-diff*0.500fib0618=fib100-diff*0.618fib0786=fib100-diff*0.786drawsegment($zigzagidx[max(0,t-1)],fib0,barindex+10,fib0)style(line,2)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib0236,barindex+10,fib0236)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib0382,barindex+10,fib0382)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib0500,barindex+10,fib0500)style(dottedline,2)coloured("blue")drawsegment($zigzagidx[max(0,t-1)],fib0618,barindex+10,fib0618)style(dottedline,2)coloured("red")drawsegment($zigzagidx[max(0,t-1)],fib0786,barindex+10,fib0786)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib100,barindex+10,fib100)style(line,2)coloured("grey")drawtext("Fib 0%: #fib0#",barindex+10,fib100+0.05*atr)drawtext("Fib 50%: #fib0500#",barindex+10,fib0500+0.05*atr)drawtext("Fib 100%: #fib100#",barindex+10,fib0+0.05*atr)elsif $dir[t]=-1 then//-----Calculation when trend Down--------------------------------------//fib0=$zigzag[t]fib100=$zigzag[max(0,t-1)]diff=fib100-fib0fib0236=fib0+diff*0.236fib0382=fib0+diff*0.382fib0500=fib0+diff*0.500fib0618=fib0+diff*0.618fib0786=fib0+diff*0.786drawsegment($zigzagidx[max(0,t-1)],fib0,barindex+10,fib0)style(line,2)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib0236,barindex+10,fib0236)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib0382,barindex+10,fib0382)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib0500,barindex+10,fib0500)style(dottedline,2)coloured("blue")drawsegment($zigzagidx[max(0,t-1)],fib0618,barindex+10,fib0618)style(dottedline,2)coloured("red")drawsegment($zigzagidx[max(0,t-1)],fib0786,barindex+10,fib0786)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[max(0,t-1)],fib100,barindex+10,fib100)style(line,2)coloured("grey")drawtext("Fib 0%: #fib0#",barindex+10,fib0+0.05*atr)drawtext("Fib 50%: #fib0500#",barindex+10,fib0500+0.05*atr)drawtext("Fib 100%: #fib100#",barindex+10,fib100+0.05*atr)endif//-----Draw all Fibonacci levels and ZigZag-----------------------------------------//if showpastFib thenfor i=t-1 downto 1 do//----------------------------------------------------------------------------//drawsegment($zigzagidx[max(0,i-1)],$zigzag[max(0,i-1)],$zigzagidx[i],$zigzag[i])//-----Show Fibonacci when trend Up-------------------------------------------//if $dir[i]=1 and showDN thenfib0=$zigzag[i-1]fib100=$zigzag[i]diff=fib100-fib0fib0236=fib100-diff*0.236fib0382=fib100-diff*0.382fib0500=fib100-diff*0.500fib0618=fib100-diff*0.618fib0786=fib100-diff*0.786drawsegment($zigzagidx[i-1],fib0,$zigzagidx[i+1],fib0)style(line,2)coloured("grey")drawsegment($zigzagidx[i-1],fib0236,$zigzagidx[i+1],fib0236)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[i-1],fib0382,$zigzagidx[i+1],fib0382)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[i-1],fib0500,$zigzagidx[i+1],fib0500)style(dottedline,2)coloured("blue")drawsegment($zigzagidx[i-1],fib0618,$zigzagidx[i+1],fib0618)style(dottedline,2)coloured("red")drawsegment($zigzagidx[i-1],fib0786,$zigzagidx[i+1],fib0786)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[i-1],fib100,$zigzagidx[i+1],fib100)style(line,2)coloured("grey")drawtext("Fib 0%",$zigzagidx[i],fib100+0.05*atr)drawtext("Fib 50%",$zigzagidx[i],fib0500+0.05*atr)drawtext("Fib 100%",$zigzagidx[i],fib0+0.05*atr)//-----Show Fibonacci when trend Down-----------------------------------------//elsif $dir[i]=-1 and ShowUP thenfib0=$zigzag[i]fib100=$zigzag[i-1]diff=fib100-fib0fib0236=fib0+diff*0.236fib0382=fib0+diff*0.382fib0500=fib0+diff*0.500fib0618=fib0+diff*0.618fib0786=fib0+diff*0.786drawsegment($zigzagidx[i-1],fib0,$zigzagidx[i+1],fib0)style(line,2)coloured("grey")drawsegment($zigzagidx[i-1],fib0236,$zigzagidx[i+1],fib0236)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[i-1],fib0382,$zigzagidx[i+1],fib0382)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[i-1],fib0500,$zigzagidx[i+1],fib0500)style(dottedline,2)coloured("blue")drawsegment($zigzagidx[i-1],fib0618,$zigzagidx[i+1],fib0618)style(dottedline,2)coloured("red")drawsegment($zigzagidx[i-1],fib0786,$zigzagidx[i+1],fib0786)style(dottedline,1)coloured("grey")drawsegment($zigzagidx[i-1],fib100,$zigzagidx[i+1],fib100)style(line,2)coloured("grey")drawtext("Fib 0%",$zigzagidx[i],fib0+0.05*atr)drawtext("Fib 50%",$zigzagidx[i],fib0500+0.05*atr)drawtext("Fib 100%",$zigzagidx[i],fib100+0.05*atr)endifnextendifendifreturnvous avez le code itf ici :
https://www.prorealcode.com/prorealtime-indicators/zigzag-fibonacci-levels-indicator/06/09/2025 at 11:49 AM #24809106/09/2025 at 12:10 PM #248094Vous pouvez trouver le code ici : https://www.prorealcode.com/prorealtime-indicators/zigzag-fibonacci-levels-indicator/
06/09/2025 at 12:47 PM #24809606/09/2025 at 2:26 PM #24810606/09/2025 at 4:39 PM #24811306/09/2025 at 5:56 PM #24811706/10/2025 at 11:58 AM #248149Bonjour. Je ne sais pas… sur quel actif et quel timeframe ? Quoi qu’il en soit, regardez, peut-être préférez-vous cet autre indicateur.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778//----------------------------------------////PRC_Fibonacci Retracement//version = 0//13.03.25//Iván González @ www.prorealcode.com//Sharing ProRealTime knowledge//----------------------------------------//// Inputs//----------------------------------------//defparam drawonlastbaronly=true//fperiod=200//reverse=1//----------------------------------------//// Calculations//----------------------------------------//if islastbarupdate thenFhigh=highest[fperiod](high)Flow=lowest[fperiod](low)FH=max(highestBars[fperiod](high),1)FL=max(lowestBars[fperiod](low),1)bb=min(barindex[FH],barindex[FL])if reverse=0 thenrevfibs=FL>FHelserevfibs=FL<FHendifif revfibs thencurrent=(close-Flow)/(Fhigh-Flow)fib0=(Fhigh-Flow)*0+Flowfib236=(Fhigh-Flow)*0.236+Flowfib382=(Fhigh-Flow)*0.382+Flowfib500=(Fhigh-Flow)*0.500+Flowfib618=(Fhigh-Flow)*0.618+Flowfib786=(Fhigh-Flow)*0.786+Flowfib1000=(Fhigh-Flow)*1+Flowr=255g=0b=0elsecurrent=(Fhigh-close)/(Fhigh-Flow)fib0=Fhigh-(Fhigh-Flow)*0fib236=Fhigh-(Fhigh-Flow)*0.236fib382=Fhigh-(Fhigh-Flow)*0.382fib500=Fhigh-(Fhigh-Flow)*0.500fib618=Fhigh-(Fhigh-Flow)*0.618fib786=Fhigh-(Fhigh-Flow)*0.786fib1000=Fhigh-(Fhigh-Flow)*1r=100g=255b=100endif//----------------------------------------////Draw Fibonacci Levels//----------------------------------------//drawsegment(bb,fib0,barindex+10,fib0)style(dottedline)drawsegment(bb,fib236,barindex+10,fib236)style(dottedline)coloured(r,g,b)drawsegment(bb,fib382,barindex+10,fib382)style(dottedline)coloured(r,g,b)drawsegment(bb,fib500,barindex+10,fib500)style(dottedline)coloured(r,g,b)drawsegment(bb,fib618,barindex+10,fib618)style(dottedline)coloured(r,g,b)drawsegment(bb,fib786,barindex+10,fib786)style(dottedline)coloured(r,g,b)drawsegment(bb,fib1000,barindex+10,fib1000)style(dottedline)//----------------------------------------////Drawtext Fibonacci Levels//----------------------------------------//drawtext("0 : (#fib0#)",barindex+20,fib0)drawtext("23.6% : (#fib236#)",barindex+20,fib236)drawtext("38.2% : (#fib382#)",barindex+20,fib382)drawtext("50.0% : (#fib500#)",barindex+20,fib500)drawtext("61.8% : (#fib618#)",barindex+20,fib618)drawtext("78.6% : (#fib786#)",barindex+20,fib786)drawtext("100 % : (#fib1000#)",barindex+20,fib1000)endif//----------------------------------------//return -
AuthorPosts