Nicolas

Fibonacci 61.8% retracement

Category: Screeners By: Nicolas Created: January 18, 2016, 3:47 PM
January 18, 2016, 3:47 PM
Screeners
12 Comments
Fibonacci 61.8% retracement

This is a stock screener that catch candlestick close which are within 1% of the last 65 days 61.8% retracement (38.2% for a up trend) of Fibonacci levels.

While price usually bounce on Fibonacci levels, this one can reveal good entry point for trend continuation.

hh = highest[65](high)
ll = lowest[65](low)

fib618 = (hh-ll)*0.618

level618 = ll+fib618

nearpercent =  ABS(1-(close/level618))*100

SCREENER[nearpercent<1]

 

Download
Filename: Fibonacci-61.8-retracement.itf
Downloads: 1084
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

besserwerden
8 years ago
#

Hello, I want t use this screener, but only results for uptrend. Is there a possibillity to ad a condition like "the ll has to be older than the hh? I tried something with barindex but I couldn´t code it. Thank you for helb.

Laurent7533
9 years ago
#

Bonjour Nicolas, Merci pour ce screener. Si je visualise bien son fonctionnement pour une tendance à la hausse, j'ai plus de mal à la baisse. Saurais-tu comment coder l'équivalent dans une tendance baissière ?

Nicolas
9 years ago
#

Je pense que cela a été fait dans le forum il y a quelques temps, il faudrait le retrouver toutefois.

Petrus
10 years ago
#

Hi Nicolas.

Why the number of periods of 65?

Nicolas
10 years ago
#

The answer could be : "why not?" :) There is no real reason for taking 65 or 72 periods.. 

vitatrader35
10 years ago
#

Hola, Nicolas

Sigo intentando emplear este indicador para hacer un screener, y su ayuda me puede venir muy bien.

¿Se podría programar el indicador para que únicamente obtenga resultados cuando el máximo se produce después del mínimo? (para así detectar correcciones en tendencias alcistas; o todo lo contrario para las tendencias bajistas...).

Aporio
9 years ago
#

Estaría bien que Nicolás ayudara en esto.. Saludos

rubahkecil
10 years ago
#

Ahh yes of course, 61.8 one way, 38.2 the other.  Any ideas on how to display graphically which candles were used for the retracement or plot the fib?

Nicolas
10 years ago
#

Yes of course, just write a short indicator with this code in it:

hh = highest[65](high)
ll = lowest[65](low)

RETURN hh,ll

 

Nicolas
10 years ago
#

Yes it returns 61.8% level, same as 38.2% one. Depends on how you are applying the retracement on a chart, from high to low or from low to high.

besserwerden
8 years ago
#

Hello Nicolas, I want t use this screener, but only results for uptrend. Is there a possibillity to ad a condition like “the ll has to be older than the hh? I tried something with barindex but I couldn´t code it. Thank you for help.

rubahkecil
10 years ago
#

Hi Nicolas this seems to return in both directions, uptrend and downtrend.

would it still be accurate as 618 is being added to the low, shouldn't it be subtracted from the high for uptrend retracement ect?

what if we wanted to confirm the resumption of the trend?  would it be as simple as checking that the current high > low and vice versa? 

ProRealCode ProRealCode
Loading...