Vivien René

Break Out after 20 stable units

Category: Screeners By: Vivien René Created: July 22, 2020, 12:41 PM
July 22, 2020, 12:41 PM
Screeners
9 Comments
Break Out after 20 stable units

This code was done to detect any value which was stable the last 20 days (MMA7 variations < 5%) and operate a breakout by breaking the highest of these last 20 days

// MMA7 condition
maxexp = highest[20](exponentialaverage[7])[1]
minexp = lowest[20](exponentialaverage[7])[1]

percexp = (maxexp - minexp) / minexp
c1= percexp < 5/100

// Find max candle on last 20 unit
maxcandle = highest[20](high)[1]
c2 = close > maxcandle

// Volume condition
avgVol = average[20](volume)

sum = 0
for i=0 to 20
if (volume[i] < avgVol*10) then
sum = sum + volume[i]
else
sum = sum + avgVol
endif
next

avgVol = sum / 21
c3 = avgVol > 1000

// Screener
SCREENER[c1 and c2 and c3](percexp*100 as "MMA7 variation")

 

Download
Filename: Break-Out-after-20-stable-unit.itf
Downloads: 1153
Vivien René
Vivien René Average
Currently debugging life, so my bio is on hold. Check back after the next commit for an update.
Author’s Profile

Comments

PHAN100
4 years ago
#

bonjour, je viens de tester ce screener, je constate une anomalie...il ne renvoie pas l'exemple de 20 bougies en range précédement...mais renvoie bien un plus haut sur ces 20 dernières bougies. Je ne suis pas satisfait, exemple au 29 Avril: air Liquide qui n'a pas du tout la configuration d'un break out classique...et je n'ai pas envie de rentrer sur Air Liquide.

reecet
5 years ago
#

any codes like this but in minutes and hours rather than days?

yeoreum
5 years ago
#

Thank you very much for the screener, it reminds me on Minervini VCP. How to change the parameters. I want to look for break outs.. High volume. More then double of average volume. The volume before break out should be dried out. Half of the average volume. Here is an example

B31700
5 years ago
#

Bonjour, Je suis débutant, c'est mon premier post. Félicitations pour le screener. Je voudrais savoir s'il est possible de remplacer l'unité de temps "days" soit par "hours" ou soit "minutes" ? si oui, comment faire ? Cordialement

Newbie999
6 years ago
#

I want to use this code but limit my scan to stocks priced to a maximum of 10c. Any ideas? thanks

Nicolas
6 years ago
#

mycondition = close <= 0.10

clody
6 years ago
#

Good morning Rene'. Thanks a lot d=for the 3 screener you made regarding Breack Out (very usefull for my operation) . Could you please be so kindly to help me to add some simple function which maybe for you is very easy1)show only title with Volume over 100.000 2)Show titles which reach at list 3 days up after Breack Out. Tks a lot for your help Claudio

Vivien René
6 years ago
#

Tout a fait demon, cela depend de ce que tu recherches personnellement je ne souhaite enlever que les valeurs illiquides donc avec une moyenne de volume sur les 20 derniers jours superieure a 1000 mais tu es libre d adapter comme tu le souhaites :)

Demon
6 years ago
#

Bonjour, je n'ai pas téléchargé le code mais je l'ai lu et comme je ne comprenais pas la condition C3, j'ai créé un indicateur pour voir comment fonctionne C3. Il retourne à chaque fois la valeur 1, ce qui est logique car il donne comme vrai une moyenne 21 des volumes journaliers supérieure à 1000 ce qui est extrèmement faible. Par exemple, mes screeners éliminent toutes les valeurs dont la moyenne des volumes journaliers est inférieure à 100 000. A part cette petite remarque, il fonctionne très bien Bonne journée.

ProRealCode ProRealCode
Loading...