Doctrading

Gaps screener

Category: Screeners By: Doctrading Created: March 22, 2016, 5:57 PM
March 22, 2016, 5:57 PM
Screeners
14 Comments
Gaps screener

This handy little screener allows you to easily detect “gaps“.

Very useful especially on the stocks market, so you can scan a number of markets very quickly.

You are free to do what you want, depending on your strategy approach : continuation gap , attempt of gap filling, etc.  

Here is the code of the screener, to detect them .

Remember to select the desired market (eg “Euronext” ) and timeframe ( for example, ” Daily “).

REM gaps

c1= low - high[1] > 0.0001

c2= low[1] - high > 0.0001

c3 = volume > 100000

gap = (c1 or c2) and c3

screener[gap]

Here is the code for the indicator :

gap = 0

c1 = low - high[1] > 0.0001

IF c1 THEN

gap = 1

ENDIF

c2 = low[1] - high > 0.0001

IF c2 THEN

gap = -1

ENDIF

return gap as "GAP"

You can set the green or red color for the bullish or bearish gap (as shown on the picture)

Download
Filename: Gap-Screener.itf
Downloads: 928
Doctrading
Doctrading Master
Hello, I'm Marc. Nice to meet you.
Author’s Profile

Comments

rille66
5 years ago
#

Hi doctrading. If you wan't to change the screener to register the gap open in realtime so you se the gap in realtime at open. Please advise. Merci. Richard

owes29
9 years ago
#

Hi

what do you find are the best settings for intraday trading

regards

Lee

 

jbox
9 years ago
#

Bonjour,

 

Je souhaite affiché affiché les gap sur le graph des prix directement

J'ai combinais votre code avec le mien mais n'arrive toujours pas au résultat souhaiter car l'indicateur ne garde pas le gap en mémoire jusqu'à ce qu'il soit comblé.

 

Pensez vous que cela soit possible?

 

Merci pour votre réponse

 

c1 = close[1] - high > 0.0001
c2 = low - close[1] > 0.0001


if c1 then
GapH = Close[1]
GapL = high
endif

if c2 then
GapH = Low
GapL = Close[1]
endif

return GapH as "GapH", GapL as "GapL"

 

 

Daniel da Costa
10 years ago
#

Hi, i would like to code an indicator similar to this one but it must not take the 'wicks' of the candle into consideration. Is it possible to help?

8oUBw8Qio3
10 years ago
#

I would be really great if everyone stuck to English - I presume I'm not the only one who doesn't speak French fluently. 

Madrosat
10 years ago
#

Bonjour Doctrading

Voilà une bonne nouvelle  , attendons avec impatience .

Bonne journée

Doctrading
10 years ago
#

Bonjour,

La version 10.3 de PRT (à venir bientôt !) permettra toutes sortes de créations graphiques. On ne va pas dire "artistique" quand même, mais je l'attends aussi avec impatience !

Madrosat
10 years ago
#

Bonjour Doctrading

Quel dommage j'en suis  également Désolé  .

Pouvez vous me dire en toute clarté si on peut  oui ou non programmer un segment oblique avec prorealtime???

Bon week end

Madrosat

 

Doctrading
10 years ago
#

Bonjour,

Non, c'est juste un tracé manuel. Désolé...

Madrosat
10 years ago
#

Bonjour à tous

Sur le graphique ci-dessus des segments qui me paraissent projetés vers l'avant sont tracés (en bleu) est ce un indicateur qui les a tracés??

ou ont ils été tracés manuellement??

Pour tout dire je recherche un indicateur de ce genre qui tracerait un segment oblique partant des deux ou trois  derniers plus haut (plus bas) et qui se prolongerait vers l'avant

ça existe sur mt4 j'avais demandé la traduction en langage prorealtime mais le code  qui m'a été donné  me trace des segments horizontaux .

Si ça vous inspire chers amis votre aide serait la  bienvenue.

Si vous voulez je peux vous transmettre le code mt4  moi hélas j'ai déjà du mal  à bien comprendre  la programmation prorealtime  alors mt4 !!!

Bonne journée

Madrosat

Doctrading
10 years ago
#

Bonjour,

Je ne pense pas qu'il serait utile de faire à la fois un screener et un indicateur pour ce bout de code. L'important est plutôt le screener à mon sens.

C'est pour cela que je ne l'ai pas posté en indicateur.

Cordialement,

PS : j'essaierai de rédiger en anglais pour éviter la fastidieuse tâche à notre modérateur ;)

supertiti
10 years ago
#

une petite chose en plus , le code de l'indicateur aurait sa place dans la rubrique indicateur ?

pour Nicolas : pour éviter 2 posts ne pourrait on pas mettre un bouton pour modifier un post ?

bonne journée

Nicolas
10 years ago
#

@supertiti Oui, cet indicateur pourrait également faire partie de la bibliothèque. Pour la modification des posts de la librairie, je suis le seul maître à bord :) Chaque post de la bibliothèque est revu par moi même avant de figurer au public. Premièrement pour uniformiser la présentation et dans un deuxième temps : vérification du code, ajout du fichier ITF éventuel, traduction en anglais si besoin.

supertiti
10 years ago
#

Hello Doc

merci pour ce code qui peut nous rendre bien des services

bonne journée

ProRealCode ProRealCode
Loading...