Heikin Ashi Doji screener

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
//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
 xHigh = Max(haOpen, haClose)
 xLow = Min(haOpen, haClose)
 hahigh = Max(High,xHigh)
 halow = Min(Low,xLow)

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

screener [data]


Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. pascal3431 • 7 days ago #

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

    • Nicolas • 7 days 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. 

  2. zen83 • 2 days 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

Register or


avatar avatar
Related users ' posts
DerPat I am also interested in your forward testing, as backtesting results are useless.
Elsborgtrading I agree, but since we don't have any SL or TP at all, or any Profit on zero candle, I think ...
ALEALE Dear Mr. Brymas ,could you test the optimazed strategy of Elsbortrading below for 1 year ?Th...
CarlosFC Hello Nicolas and thanks a lot for your excellent work. I have been trying to use this indi...
Nicolas Please add it on the price chart using the wrench at the left upper side of the chart.
CarlosFC Oh yes! It works. Thanks a lot Nicolas.
Corto78 Bonjour, Merci pour cette stratégie, mais je ne comprends pas comment vous faites pour test...
Nicolas On peut augmenter le nombre d'unités en utilisant (x) unités pour backtester très loin dans ...
Doctrading Chez IG markets, on est effectivement plus limité.C'est pourquoi j'utilise ProRealTime CFD. ...
skydive If I remove cond1 and cond2 the candles are back
Nicolas You should change the conditions with an average on (close) and see what happens.
skydive Now I did lose even more candle on the chart Sorry I did not have permission to upload och...
bobtrader Hi Nicolas, would it be possible to modify this code so that I could try it in ProBackTest? ...
Nicolas Hello Bob, of course it is possible. I'll post your request on the English ProOrder Forum ASAP.
Nicolas @bobtrader, you'll find your strategy request coded here in the forum : http://www.prorealco...