Candlestick patterns recognition

v10.3
Candlestick patterns recognition

This indicator recognize about 13 candlestick patterns and draw their names with green and red arrows on chart:

  • Doji
  • Evening star
  • Morning star
  • Shooting star
  • Hammer
  • Inverted hammer
  • Bearish harami
  • Bullish harami
  • Bearish engulfing
  • Bullish engulfing
  • Piercing line
  • Hanging man
  • Dark cloud cover

I know a lot of people are looking for codes for candlestick pattern recognition, I stumble upon this pinescript code at TV so I decided to convert it to prorealtime.

The patterns tests are stored into “data” variables, so these codes snippets can be taken to make other indicators, trading strategies or screeners with ease.

Text colour can be changed with the R.G.B. values at the beginning of the code.

 

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. AleX • 07/17/2016 #

    Bug on 10.2? 
    Errore di sintassi: Linea 12, carattere 9
    Uno dei seguenti caratteri sarebbe più appropriato di “(“:
    – “,”
    – “=”

    • Nicolas • 07/17/2016 #

      This indicator is only compatible with version 10.3, because it draws graphical components.

  2. AleX • 07/17/2016 #

    Ok, i’m waiting for release. Thanks for this sharing, very very interesting. 

  3. Doctrading • 07/17/2016 #

    Nice work !

  4. Pierre • 07/17/2016 #

    Very nice !

    This has been requested many times by PRT users.

  5. Sofitech • 356 days ago #

    Bonjour Nicolas. Superbe indicateur. Peut-on l’utiliser pour des stratégies ? Visiblement oui mais dans le module backtest, je ne vois apparaître que le nom de l’indicateur lorsque j’essaye de saisir des conditions d’achat / vente …Comme faire ?
    J’ai la même question avec le Fractal ZigZag, seul le nom de l’indicateur apparaît. 

    Merci pour tes lumières. Cette version semble très prometteuse.

    • Nicolas • 356 days ago #

      En effet, puisque tu remarques que la fonction RETURN ne retourne rien comme variable. Dans la version 10.3 on peut se permettre de le faire lorsque on souhaite juste faire des indications graphiques.

      Pour utiliser ces patterns dans ton code, il te suffit juste de faire des copier/coller des lignes “data” et de les vérifier comme des conditions banales : IF DATA14>0 THEN ..

  6. Sofitech • 356 days ago #

    ok merci. Je vais tester cela…

  7. Ashevs21 • 354 days ago #

    how do i get version 10.3??

  8. Pascal • 348 days ago #

    Ça va être très intéressant d’avoir un retour statistique sur ces figures chartistes, merci!

  9. CarlosFC • 254 days ago #

    Hello Nicolas and thanks a lot for your excellent work.

    I have been trying to use this indicator but, after importing it from PRT version 10.3, nothing happens.

    https://gyazo.com/fd22ce752d60add9a7ba091b21ff457e

     

    • Nicolas • 254 days ago #

      Please add it on the price chart using the wrench at the left upper side of the chart.

    • CarlosFC • 254 days ago #

      Oh yes! It works.

      Thanks a lot Nicolas.

  10. Cavok • 173 days ago #

    Bonsoir, comment modifier le texte blanc en une autre couleur, le blanc étant extrèmement difficile à lire?

    Un grand bravo pour votre travail.

     

    • Nicolas • 172 days ago #

      La définition de la couleur blanche a été volontairement laissé accessible pour modification aux lignes 3,4,5 pour les utilisateurs n’utilisant pas un fond noir pour leurs graphiques (valeurs Rouge, Vert et Bleu à modifier à votre convenance).

  11. Ciccio • 163 days ago #

    There is this Metatrade 4 code that I found around, and it seems more complete than the one posted here

    Could someone kindly convert it to Prorealtime code?

    Thanks in advance

    • Nicolas • 162 days ago #

      Please use the forums instead! Don’t copy/paste codes of entire indicator in comments 🙂 You can upload file in a new forum post query for indicator translation.

  12. Reddi • 151 days ago #

    Great Nicolas and Thx,

    Nice work. IG has released today PRT 10,3 in Germany and I added the function immediately.

  13. Nicolas • 147 days ago #

    Another indicator for almost 40 candlesticks patterns identification has been released by Ciccio and it is available here: https://www.prorealcode.com/prorealtime-indicators/candlesticks-patterns-indicator/

  14. darraghcoyle77@ • 54 days ago #

    Hi Nicolas,

    Can this be edited to only show bullish/ bearish engulfing .

     

    Darragh

  15. guinsu2000 • 24 days ago #

    hello excuse my english, but i didn’t see spinning candle detection ?  can you add it please !

    • Nicolas • 24 days ago #

      You should have a look at this other candlesticks patterns indicator: https://www.prorealcode.com/prorealtime-indicators/candlesticks-patterns-indicator/

avatar
Register or

Likes

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

+5 more likes

Related users ' posts
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,
Boursomaniac In addition, if you want to get more information on how to use the candlestick and evening a...
Francesco78 Merci, tres interessant
zen83 Merci Nicolas, génial! cela faisait un certain temps que je l'attendais, c'est un bel outil ...
finplus Bonjour, merci pour ce screener qui m'intéresse énormément. Etant nul en codage, je souhaite...
Nicolas Je pense qu'il faudrait poster un nouveau sujet dans le support ProScreener du forum, on y s...
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  
Cavok Bonjour, Comment utiliser cet indicateur comme screener? Merci.
Adolfo Onrubia Thanks Doctrading! Let's try something with it. :)
Doctrading Sure, I will :)
farridin Hi Doctrading thank you very much for this code. One question as I'm new to coding, what wou...
Doctrading Maybe you can also change the hourly beginning of the day (not 23PM but 12AM, OOH in french)...
Duccio Hi Doctrading,there is a way to control the max loss of the positions in this code? For exa...
Doctrading Hello, Yes, there is a command I think, but I don't know it. Nicolas knows it. You can als...
fesxeurex Thanks for posting, Apologies if this is a dumb questions but like Chinese say "If you ask ...
GraHal Hi fesxeurex After the bar has formed because the code / criteria  would be checked at the ...
Doctrading Hello fesxeurex, It can display both : when it is in formation, and when it has been formed...

Top