Candlesticks patterns indicator

Candlesticks patterns indicator

This indicator is a complete candlesticks patterns recognizer indicator. It is a different one and more complete than the other you can find already in the library here.

This indicator recognizes about 40 candlestick patterns and draw their names with green and red arrows on chart (Windows, i.e. gaps, are drawn as “W”):

  • Doji
  • Evening star
  • Morning star
  • Shooting star
  • Hammer
  • Inverted hammer
  • Bearish harami
  • Bearish harami cross
  • Bullish harami
  • Bullish harami cross
  • Bearish engulfing
  • Bullish engulfing
  • Piercing line
  • Hanging man
  • Dark cloud cover
  • Abandoned baby bottom
  • Three White soldiers
  • Three Inside Up
  • Three Outside Up
  • Concealing Baby Swallow
  • Dragonfly Doji Bottom
  • Gravestone Doji Bottom
  • Three Stars in the South
  • Bullish Breakaway
  • Rising Three Methods
  • Bullish Three Line Strike
  • Bullish Mathold
  • Abandoned Baby Top
  • Three Black Crows
  • Three Inside Down
  • Three Outside Down
  • Upside Gap Two Crows
  • Dragonfly Doji Top
  • Gravestone Doji Top
  • Advance Block
  • Two Crows
  • Bearish Breakaway
  • Falling Three Methods
  • Bearish Three Line Strike
  • Bearish Mathold
  • Windows (Gaps Up & Gaps Down)

Since Candlesticks have a meaning only if related to the underlying trend, at the beginning of the code there is also the possibility to change the method used to identify the “trend direction” (1=MACD, 2=SAR [default], 3=Directional Movement)

Original idea and discussions from this topic on forum:


Share this

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. baaz • 21 days ago #

    Thanks Ciccio! It works the way you suggested it.

  2. Aporio • 15 days ago #

    Qué bueno!!! felicidades.

    Es posible hacer screener de velas de suelo tipo hammer, envolventes bullish engulfing, además de doble suelo o una divergencia alcista?



Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+15 more likes

Related users ' posts
dzim0032 J'avais oublié de mettre un commentaire pour la vente du scalper dont les règles sont justes...
Juan Salas Hi, I got the same problem in Oil USA 10'. The system was canceled because there is a divis...
Francesco78 I have opened a forum thread as suggested by Grahal in order to make discussion more confort...
Kv6 Hola Francesco, Muy buenos resultados. No obstante, cuando pongo el código a funcionar, a...
bjoern Added a range filter for entering positions. Performance seems to be much better, even with ...
Nicolas Thanks!
victormork btw this strategy has an edge on Bund 1h as well
Sofitech What is the timeframe(s) you woul suggest to use for this method ?On Forex and/or on stock m...
Doctrading Hello, Higher timeframes are better. I suggest D1 or H4.Best regards,
Nicolas What are you calling a finished strategy? This one has been coded by a request on forums, si...
clanli Hi Nicolas Thanks for a fantistic piece of code. I tried the following with really good res...
rama where is Z variable in the program? i want to have look back period says 3 candles. I want...
Francesco78  Sorry I must add that it looks great only if we start the backtesting from 2008. Im not fa...
Nicolas You can't upload images here, sorry. Hi, I dont understand, when I do the backtest I get only drawdown and a big loos? Have I mis...
Nicolas I try to keep the online documentation up to date, because I'd like to add more examples in ...
derelman Hi,         I cannot get any of these indicators to display on the chart and not the indica...
Nicolas Add it on the price instead, by using the wrench on the upper left side of the price chart.
Maxime Leleux Nice screener but the 2 candelsticks around the doji should be long sticks (red and green). ...
kajsy88 I'm using prorealtime suplied by ig markets so that's potentially why then !
davidspain It would be possible to use this screener at the same time than the recent one about high vo...
Jean-Pierre Poulain Hello, I am in version 10.3 but it does not work  
11 months ago
petmut OK thanks a lot. I will do that P
Copperwave Hi Nicolas Can you detail what c1, c2 and c3 represent? Are they bullish (so falling wedge)...
Nicolas I don't remember, but you can test yourself by deleting 2 of the these 3 conditions to see w...
bluetime6 Hello Doctrading.   Can you ask you for something? Can you code a screener screen po...
Stef Hi @Doc, If my calculations are correct, your example above, over 40 years, made 1.88% per ...
Doctrading Hello, I didn't make the calculation, it should be true.Best regards,
DerPat Adding spread, it only generates losses. The idea is good, I see use for this algo in combin...