Nicolas

Heikin Ashi Doji screener

Category: Screeners By: Nicolas Created: January 10, 2017, 10:23 AM
January 10, 2017, 10:23 AM
Screeners
16 Comments
Heikin Ashi Doji screener

This is a Doji pattern adapted for Heikin Ashi candlesticks. The pattern’s body size can be adjusted in the parameter, in percent compared to the complete range of the candle. It is set to 5 percent but you could change it with the desired body size.

This Doji screener has been coded by request on Italian ProScreener forum.  

A wide range of other patterns can be retrieved in another complete indicator that grouped many candlesticks patterns, you can find it here: candlesticks patterns recognition

A Doji pattern is a well known candlestick formation that symbolize a market exhaustion or an indecision of the bull or bear actual trend.

 

//PRC_Doji Heikin Ashi | screener
//10.01.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

// --- parameters
DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
// ---

if barindex>1 then
 haclose=(open+close+low+high)/4
 haopen=(haopen[1]+haclose[1])/2
 xHigh = Max(haOpen, haClose)
 xLow = Min(haOpen, haClose)
 hahigh = Max(High,xHigh)
 halow = Min(Low,xLow)
endif

data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)

screener [data]

 

Download
Filename: PRC_Doji-Heikin-Ashi.itf
Downloads: 618
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

Gover66
4 years ago
#

Hello, I would like to limit the screener to the last 5 bars only, is this possible?

Djamal Zidane
4 years ago
#

hello tout le monde , marcara ton objectif est tjrs de l'actualité?

Vince74
5 years ago
#

bonjour, je suis a la recherche d'un screener, ou une bougie Heikin Ashi ( en tendance haussière ) casse Kijun, merci de votre aide

Nicolas
5 years ago
#

Pour les demandes spécifiques, merci d'ouvrir un sujet sur le forum des screeners en respectant les règles de publication.

lorenzon
7 years ago
#

Hello, is it possible to adapt the code for a monthly timeframe? (the screener allow only daily or weekly TF)

marcara
8 years ago
#

I woul like to add some trend before the Doji (at least four green consecutive Heiken Ashi Candles or four red consecutive candles). Any help will be appreciated.

marcara
8 years ago
#

//PRC_Doji Heikin Ashi | screener //10.01.2017 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge // --- parameters DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick // --- if barindex>1 then haclose=(open+close+low+high)/4 haopen=(haopen[1]+haclose[1])/2 xHigh = Max(haOpen, haClose) xLow = Min(haOpen, haClose) hahigh = Max(High,xHigh) halow = Min(Low,xLow) // Added to check if the -1 Candle is a Keiken Ashi Doji haclose1=(open[1]+close[1]+low[1]+high[1])/4 haopen1=(haopen1[2]+haclose1[2])/2 xHigh1 = Max(haOpen1[1], haClose1[1]) xLow1 = Min(haOpen1[1], haClose1[1]) hahigh1 = Max(High[1],xHigh1) halow1 = Min(Low[1],xLow1) endif data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100) data1=(abs(haopen1 - haclose1) <= (hahigh1 - halow1) * DojiSize/100) screener [data or data1]

marcara
8 years ago
#

Thank you very much for the code. I added some code to check if there is a Doji in the previous candle.

Nicolaconte
8 years ago
#

Many many thanks for that Nicolas. What if i would like to screen a weekly time frame? It seems that it pull out stocks only in a daily tf. Thanks!

Nicolas
8 years ago
#

Choose weekly timeframe in the dropdown menu in ProScreener.

duduche
9 years ago
#

Bravo.

finplus
10 years ago
#

Bonjour, merci pour ce screener qui m'intéresse énormément. Etant nul en codage, je souhaiterai savoir s'il était possible d'adapter le screener au sujet suivant : je souhaiterai pouvoir avoir un screener me permettant d'identifier toujours le Heiken Ashi les bougies avec un tout petit corps et de longues mèches. J'avais pensé calculer la différence entre le cours d'ouverture et celui de clôture (= le corps) et la comparer (si par exemple le cours d'ouverture est supérieur au cours de cloture) aux données suivants : plus haut - cours d'ouverture (= la mèche haute) > au moins 3 fois (par exemple) au corps. J'ai tenté de coder un screener mais il ne me donne pas de bons résultats. Quelqu'un peut il m'aider SVP? Merci.

Nicolas
10 years ago
#

Je pense qu'il faudrait poster un nouveau sujet dans le support ProScreener du forum, on y sera bien plus à l'aise pour y parler de ce nouveau sujet :) 

zen83
10 years ago
#

Merci Nicolas, génial! cela faisait un certain temps que je l'attendais, c'est un bel outil d'aide à la décision en double visualisation HA / Chandelier

pascal3431
10 years ago
#

Est ce que le screener fonctionne si l'on n'est pas en visualisation Heikin-Ashi ?

Nicolas
10 years ago
#

Oui il fonctionnera de la même façon et dans tous les autres types de représentations du prix, les bougies heikin ashi sont entièrement recalculés dans le code de l'indicateur. 

ProRealCode ProRealCode
Loading...