TradingView
repo32
Mar 7, 2015 6:38 PM

Candlesticks Patterns Identified 

Apple Inc.NASDAQ

Description

I was using another script that colored the bars to show the different candle patterns. Thanks to HPotter (tradingview.com/u/HPotter/). Unfortunately, I can't think that fast when looking across a screen of charts with different color bars. Fortunately, Tradingview came up with symbols and names on 2/26/15. I decided to take my favorite symbols and attach them to a name. This makes it easier to see what is going on and where your entry would be if it confirms. Works beautifully for me. Decided to share. I also added the ability to alter what shows up based upon a look back. A bullish engulfing at the top of a trend, or a bearish harami at the bottom of the trend, is nearly useless and clutters the chart. I have the default set for the open of the current bar to be higher or lower than the open from 5 bars back. You can adjust in the settings to what you like. This trend setting is on all the patterns except doji. If you want to see all the candle patterns, set it to "1".

The doji can be adjusted as well. I left some other patterns at the bottom of the script, but they are turned off. They became too much of a clutter for me. I prefer DovCaspi's pattern finder for hammers and stars: tradingview.com/v/L15YjzZb/ I use his due to the clean appearance.

The default script has: Doji, Bearish Harami, Bullish Harami, Bearish Engulfing, Bullish Engulfing, Piercing Line, Bullish Belt, Bullish Kicker, and Bearish Kicker. You can turn off what you don't like. The Piercing Line, Bullish Belt, and the Kickers will usually show up better in the daily charts.

If you would like the updated version, see the Related Ideas below:
Comments
rajagopalsprabhu
cool stuff
repo32
@rajagopalsprabhu, Thank you! I hope it works well for you.
rajagopalsprabhu
@repo32, YEA, THANKS
lanredocemo
I will like to have a description of the candlestick pattern show in a bubble when I hover on the name. Could you please tell me how to do this on PineScript?
repo32
@lanredocemo, Honestly, that is a good idea. I just don't know if that is a feature available in PineScript.
LeHoangTung
Please tell me which software this code is for?
repo32
It is for TradingView.
NicholasB
pine editor, trading view charts
scotdov
This is one of my major indicators that I use all the time. The only question I have is, when using a black background, the bearish indicators are hard to see in red. Is there any way of changing the bearish colors to yellow or something a little brighter on a black background?
repo32
@scotdov, Looks like you are correct. When changing it in the settings, it only changes the character, not the text. I was able to do a quick fix by changing the code. You will need to copy the entire code and paste it into a new script and save it. Then, go into each of the setups (i.e. bearish engulfing) and change the color from red to yellow. Save the new code and it will have the symbol and text as yellow. I didn't realize it had that limitation. If someone knows a better fix, please post it behind mine. Thanks.
More