Outil retracement de Fibonacci pour le price action
Forums › ProRealTime forum Français › Support ProBuilder › Outil retracement de Fibonacci pour le price action
- This topic has 33 replies, 6 voices, and was last updated 3 years ago by Nicolas.
Tagged: fibonacci
-
-
07/10/2021 at 10:05 PM #17345707/19/2021 at 10:03 AM #17379507/19/2021 at 11:31 AM #17380307/19/2021 at 1:45 PM #173812
Bonjour Noobywan,
Merci pour ce retour… Pour ma part j’ai le souci sur tous les actifs. Au moment de l’installation de l’indicateur sur le graphique c’est parfait, et au fur et à mesure des chandeliers avec de nouveaux plus bas ou plus hauts quotidiens l’affichage se met sur le bas ou le haut du corps de la bougie mais en ignorant les mèches qui correspondent aux plus vrais plus bas ou hauts du jour 🙁
07/19/2021 at 3:04 PM #17381707/19/2021 at 4:39 PM #17382307/21/2021 at 11:32 AM #17394307/22/2021 at 1:26 PM #173991Oui c’est possible bien entendu. Le code ci-dessous est adapté de celui de la première page, on trace les niveaux de Fibonacci en fonction du plus haut au dessus de la bande haute et du plus bas de la bande basse:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586// Price Action Tools | Indicator// 25.05.2019 (Release 1.0)// Swapping @ www.forexswap.fr// Sharing ProRealTime knowledge// fibonacci on bollinger bands inside/out - Nicolas// https://www.prorealcode.com/topic/price-action-tools/page/2/#post-173943DefParam DrawOnLastBarOnly = true// --- Property settingsXOffset = 10 // Text XOffsetAlpha = 255 // Text TransparencySetBar = 0 // Width adjustment rectangle// --- end// --- initXOffset = max(2,XOffset)alpha = max(alpha,0) // Limited input "Alpha"alpha = min(alpha,255) // (0 min, 255 max)// --- endbup=BollingerUp[20](close)bdn=BollingerDown[20](close)if high > bup thenHiDay = highstarthi=barindexendifif low < bdn thenLowDay = lowstartlo=barindexendif// Bullishif starthi > startlo thenfib100 = lowday //0%fib0 = hiday //100%DrawText("Top",BarIndex-XOffset-3,fib100,SansSerif,Bold,16) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset-2],fib100,BarIndex,fib100) coloured(0,0,0,alpha)fib76 = (fib100-fib0)*.764+fib0 //76.4%DrawText("76.4% ",BarIndex-XOffset,fib76,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset-2],fib76,BarIndex,fib76) coloured(0,0,0,alpha)fib62 = (fib100-fib0)*.618+fib0 //61.8%DrawText("61.8% ",BarIndex-XOffset,fib62,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset-2],fib62,BarIndex,fib62) coloured(0,0,0,alpha)fib50 = (fib100-fib0)/2+fib0 //50%DrawText("50.0% ",BarIndex-XOffset,fib50,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset-2],fib50,BarIndex,fib50) coloured(0,0,0,alpha)fib38 = (fib100-fib0)*.382+fib0 //38.2%DrawText("38.2% ",BarIndex-XOffset,fib38,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset-2],fib38,BarIndex,fib38) coloured(0,0,0,alpha)fib24 = (fib100-fib0)*.236+fib0 //23.6%DrawText("23.6% ",BarIndex-XOffset,fib24,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset-2],fib24,BarIndex,fib24) coloured(0,0,0,alpha)DrawText("0% ",BarIndex-XOffset,fib0,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset-2],fib0,BarIndex,fib0) coloured(0,0,0,alpha)else // Bearishfib100 = hiday //100%fib0 = lowday //0%DrawText("Bottom",BarIndex-XOffset-3,fib0,SansSerif,Bold,16) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset-2],fib0,BarIndex,fib0) coloured(0,0,0,alpha)fib76 = (fib100-fib0)*.764+fib0 //23.6%DrawText("23.6% ",BarIndex-XOffset,fib76,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset-2],fib76,BarIndex,fib76) coloured(0,0,0,alpha)fib62 = (fib100-fib0)*.618+fib0 //38.2%DrawText("38.2% ",BarIndex-XOffset,fib62,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset-2],fib62,BarIndex,fib62) coloured(0,0,0,alpha)fib50 = (fib100-fib0)*.5+fib0 //50%DrawText("50.0% ",BarIndex-XOffset,fib50,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset-2],fib50,BarIndex,fib50) coloured(0,0,0,alpha)fib38 = (fib100-fib0)*.382+fib0 //61.8%DrawText("61.8% ",BarIndex-XOffset,fib38,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset-2],fib38,BarIndex,fib38) coloured(0,0,0,alpha)fib24 = (fib100-fib0)*.236+fib0 //76.4%DrawText("76.4% ",BarIndex-XOffset,fib24,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset-2],fib24,BarIndex,fib24) coloured(0,0,0,alpha)DrawText("0% ",BarIndex-XOffset,fib100,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset-2],fib100,BarIndex,fib100) coloured(0,0,0,alpha)endifreturn07/22/2021 at 3:42 PM #17400807/22/2021 at 4:27 PM #174011Oui malheureusement je n’arrive pas à trouver la logique du code pour y intégrer les fractal zigzag.
en instaurant le code par une variable, indicator1 = call “nom de l’indicateur”
et rajoutant
12345678if high > indicator1 thenHiDay = highStarthi=barindexendifIf low < indicator1 thenLowDay = lowstartlo=barindexendifil me dit que l’indicateur n’a 0 valeur.
J’ai donc intauré le code du zigzagfractal pour y mettre
12345678if high > LL thenHiDay = highStarthi=barindexendifIf low < LH thenLowDay = lowstartlo=barindexendifMais rien, je n’ai pas du comprendre la logique de ce code.
123456789101112131415161718192021222324252627282930313233343536373839404142434445CODE ZIGZAG FRACTAL//---external parameterscp = 3once lastpoint = 0if high[cp] >= highest[2*cp+1](high) thenLH = 1elseLH = 0endifif low[cp] <= lowest[2*cp+1](low) thenLL = -1elseLL = 0endifif LH = 1 thenTOPy = high[cp]TOPx = barindex[cp]endifif LL = -1 thenBOTy = low[cp]BOTx = barindex[cp]endifif LH>0 and (lastpoint=-1 or lastpoint=0) thenDRAWSEGMENT(lastX,lastY,TOPx,TOPy) COLOURED(200,0,0,255)DRAWTEXT("■",TOPx,TOPy,Dialog,Bold,20) coloured(200,0,0,255)lastpoint = 1lastX = TOPxlastY = TOPyendifif LL<0 and (lastpoint=1 or lastpoint=0) thenDRAWSEGMENT(lastX,lastY,BOTx,BOTy) COLOURED(0,200,0,255)DRAWTEXT("■",BOTx,BOTy,Dialog,Bold,20) coloured(0,200,0,255)lastpoint = -1lastX = BOTxlastY = BOTyendifRETURNCode fibo auto Bollinguer à remplacer par ZIGZAG fractal
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586// Price Action Tools | Indicator// 25.05.2019 (Release 1.0)// Swapping @ http://www.forexswap.fr// Sharing ProRealTime knowledge// fibonacci on bollinger bands inside/out – NicolasDefParam DrawOnLastBarOnly = true// — Property settingsXOffset = 10 // Text XOffsetAlpha = 255 // Text TransparencySetBar = 0 // Width adjustment rectangle// — end// — initXOffset = max(2,XOffset)alpha = max(alpha,0) // Limited input “Alpha”alpha = min(alpha,255) // (0 min, 255 max)// — endbup=BollingerUp[20](close)bdn=BollingerDown[20](close)if high > bup thenHiDay = highstarthi=barindexendifif low < bdn thenLowDay = lowstartlo=barindexendif// Bullishif starthi > startlo thenfib100 = lowday //0%fib0 = hiday //100%DrawText(“Top”,BarIndex–XOffset–3,fib100,SansSerif,Bold,16) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset–2],fib100,BarIndex,fib100) coloured(0,0,0,alpha)fib76 = (fib100–fib0)*.764+fib0 //76.4%DrawText(“76.4% “,BarIndex–XOffset,fib76,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset–2],fib76,BarIndex,fib76) coloured(0,0,0,alpha)fib62 = (fib100–fib0)*.618+fib0 //61.8%DrawText(“61.8% “,BarIndex–XOffset,fib62,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset–2],fib62,BarIndex,fib62) coloured(0,0,0,alpha)fib50 = (fib100–fib0)/2+fib0 //50%DrawText(“50.0% “,BarIndex–XOffset,fib50,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset–2],fib50,BarIndex,fib50) coloured(0,0,0,alpha)fib38 = (fib100–fib0)*.382+fib0 //38.2%DrawText(“38.2% “,BarIndex–XOffset,fib38,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset–2],fib38,BarIndex,fib38) coloured(0,0,0,alpha)fib24 = (fib100–fib0)*.236+fib0 //23.6%DrawText(“23.6% “,BarIndex–XOffset,fib24,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset–2],fib24,BarIndex,fib24) coloured(0,0,0,alpha)DrawText(“0% “,BarIndex–XOffset,fib0,SansSerif,Standard,15) coloured(20,140,0,alpha)DrawSegment(BarIndex[XOffset–2],fib0,BarIndex,fib0) coloured(0,0,0,alpha)else // Bearishfib100 = hiday //100%fib0 = lowday //0%DrawText(“Bottom”,BarIndex–XOffset–3,fib0,SansSerif,Bold,16) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset–2],fib0,BarIndex,fib0) coloured(0,0,0,alpha)fib76 = (fib100–fib0)*.764+fib0 //23.6%DrawText(“23.6% “,BarIndex–XOffset,fib76,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset–2],fib76,BarIndex,fib76) coloured(0,0,0,alpha)fib62 = (fib100–fib0)*.618+fib0 //38.2%DrawText(“38.2% “,BarIndex–XOffset,fib62,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset–2],fib62,BarIndex,fib62) coloured(0,0,0,alpha)fib50 = (fib100–fib0)*.5+fib0 //50%DrawText(“50.0% “,BarIndex–XOffset,fib50,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset–2],fib50,BarIndex,fib50) coloured(0,0,0,alpha)fib38 = (fib100–fib0)*.382+fib0 //61.8%DrawText(“61.8% “,BarIndex–XOffset,fib38,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset–2],fib38,BarIndex,fib38) coloured(0,0,0,alpha)fib24 = (fib100–fib0)*.236+fib0 //76.4%DrawText(“76.4% “,BarIndex–XOffset,fib24,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset–2],fib24,BarIndex,fib24) coloured(0,0,0,alpha)DrawText(“0% “,BarIndex–XOffset,fib100,SansSerif,Standard,15) coloured(190,10,10,alpha)DrawSegment(BarIndex[XOffset–2],fib100,BarIndex,fib100) coloured(0,0,0,alpha)endifreturnMerci à vous 🙂
07/23/2021 at 9:31 AM #174046Désolé, je ne comprends pas ce qu’il faut faire ? Tracer les retracements fibo entre 2 fractals ? Plus de Bollinger ?
Si oui voir cet indicateur: ZigZag Fibonacci levels
07/23/2021 at 10:06 AM #174050Merci pour ta réponse 🙂
Non ce n’est pas via cette indicateur car le ZIGZAG d’origine est par pourcentage et ne prends pas en compte les mèches. j’aimerais un fibo auto via cette indicateur (zigzag, fractales) ( sans bollinguer)
Indicateur ci joint
merci à vous
07/23/2021 at 10:43 AM #174052petite question, ) votre avis es ce possible de mettre une drawarrowdown(barindex[0],high[0]+2)coloured(255,215,0) quand le prix retrace sur un niveau fibo ?
c1= (low < fib38)
if c1 then
drawarrowdown(barindex[0],high[0]+2)coloured(255,215,0)je pense que le fibo auto n’a pas de valeur mais graphique dessin… du coup je ne sais pas si cela est possible.
07/30/2021 at 12:32 AM #17436407/30/2021 at 6:45 AM #174365 -
AuthorPosts
Find exclusive trading pro-tools on