gilouch

Candlesticks

gilouch Updated   
Indicator that identifies the classical candlestick patterns for markets that are open 24/7 like the crypto market.
Why? because those markets don't gap, so many patterns won't need to gap to be valid.

Also, the theoretical rules about the patterns are very strict but it is to the discretion of the trader or technical analyst to decide if the patterns are yet valid. This is how Steve Nison uses candlesticks, i.e. a hammer is still valid if it has a small upper shadow, a marubozu is still valid if it has tiny shadows, etc.

So, for each candlestick pattern there are tolerance parameters so you can decide what is an acceptable upper shadow size for a hammer etc. I have set them to my liking but you might want to adjust them which is totally fine.

Additional features:
-to avoid the clutter, decide how many candles have to be analyzed
-use a trend filter based on the ema 5 (you can change the value) so you only see reversal patterns relevant to the trend
-plot pivots (swings HL)
-volume confirmation: bearish signals don't need volume confirmation as prices fall off their own weight. But volume confirmation for bullish price action can serve as added confluence. You have a setting that allows you to decide how many times the volume needs to be bigger than the previous candle's volume : if you have a bullish candlestick pattern printed, if the volume is1.5 times bigger than the previous candle then you will have a shape plotted at the bottom of your chart

-there is a cheap vs expensive feature that colors the bars

-you can also color the background so you see the oversold/overbought RSI

-finally, there are a couple of custom signals

"RULES" ABOUT CANDLESTICKS
-this is not a system in itself, but combined with other candlesticks (cluster of candlesticks), volume, oscillators, trend lines, support and resistances, bollinger bands can give amazing results and that is where the magic is
-most candlesticks can establish a support or resistance or confirm one
-a reversal candlestick doesn't mean that market will shoot the other direction right away, trend changes occur usually slowly and the trend might not reverse but convert in a period of sideways. It shouldn't actually be named reversal patterns but rather trend change patterns.
-reversal patterns need a trend to reverse (or change), in ranging markets you should ignore the signals
-you might think that there are many false signals, you need to understand that they are early warnings and the next candle's close is of major importance. A hammer at the end of a downtrend isn't enough to enter a position, you will have to wait for the next candle to close above the high of the hammer to validate the bullish reversal and vice versa.
-some signals are based on 1 candle only (like the hammer) others on 2 candles (like the engulfing pattern), others on 3 and more (tower top, morning star, etc). Patterns based on multiple candles have more probability.
-you might want to wait for price to revisit the support created by the pattern (read below) to get a better entry
-candles do not provide price targets
-long lower shadows is bullish, long upper shadows is bearish, small bodies (spinning tops, stars, dojis) means indecision and market is vulnerable to a trend change and the color of the body is irrelevant, declining size of bodies means trend strength weakening

HAMMER
stop-loss under the lower shadow
lower shadow can become a potential support or confirm an existing support

ENGULFING
with bearish engulfing pattern use the highest high of the 2 candles as a resistance, and with bullish engulfing pattern use the lowest low as support

DARK CLOUD COVER
use the highest high of the 2 candles as resistance

PIERCING PATTERN
use the lowest low of the 2 candles as support

MORNING STAR
use the lowest low of the 3 candles as support
the smaller the body of the 2nd candle the more potent the signal
for traditional markets, an ideal morning star would have a gap between 2nd and 3rd candles' bodies

EVENING STAR
use the highest high of the 3 candles as resistance
the smaller the body of the 2nd candle the more potent the signal

HARAMI
the smaller the size of the candle the more potent the signal

TWEEZERS
very important signals by themselves on weekly and monthly charts
for daily and intraday signals, it is potent only if it meets additional criterias (1st candle long, 2nd short, a candle pattern with with same highs or lows)

BELT-HOLD
they are more important if they confirm a support or resistance or another belt-hold or if they have not appeared for a while.

3 BLACK CROWS AND 3 WHITE SOLDIERS
candles 1 and 2 should act as support for the 3WS and as resistance for the 3BC

RISING AND FALLING 3 METHODS
stop-loss is the low of the 1st candle that started the rising 3 methods
stop-loss is the high of the 1st candle that started the falling 3 methods
ideally 1st and last candles have the strongest volume

DOJI
signal is reinforced by subsequent candles, if market is oversold or overbought, if the market doesn't have many doji on the chart, if market is at an important junction, if there are other technical alerts
doji after a tall candle are especially potent, the highest high of the 2 candles is the resistance
doji are especially potent after an uptrend, less so after a downtrend
gavestone doji is a bearish signal
dragonfly doji is a bullish signal
long-legged doji is a confused market

CUSTOM
*1st signal is a continuation pattern based on the progression of bodies' sizes and/or shadows' sizes
*following ones are reversal patterns based on the progression of bodies' sizes and/or shadows' sizes
*early reversal is based on a "secret" excess signal
reversal confirmed is when the early reversal's excess resolves and price reintegrates the non-excess area + prints a custom reversal pattern
for both early reversal and reversal confirmed the same rule applies as with any candlestick signal: we wait for the next candle's close above the previous upper shadow (bullish reversal) or below the previous lower shadow (bearish reversal)
*swings are 3 candles fractals, they are not reversal or continuation patterns but serve to mark swing highs and lows

this is all based on Steve Nison's book Japanese candlestick charting techniques
and
Thomas N. Bulkowski's Encyclopedia of candlestick charts
Release Notes:
Indicator updated with text removed, some signals refined
Release Notes:
Added Rob Smith signals
Release Notes:
Bug fix on Rob Smith's candles
Release Notes:
UI fix
Release Notes:
Adding plenty of filters that can be turned on or off:

-Trend filter: based on ema, detects if it goes up and then shows only bearish signals, or if it goes down and then shows only bullish signals for reversal plays

-ATR filter: to hide signals on very big candles where the stop loss would be too far away

-SWING filter: to show bullish signals only for candles that have printed the lowest low over the last x periods (and bearish signals for candles that have printed the recent highest high)

-EMA filter: to show only bullish signals when candle closes above the EMA (and bearish signals when closing below)

-RSI filter: the only show bullish signals when RSI is above x and below x, for example above 50 and below or equal to 100

Refining hammer and star signals

Adding an allowance parameter expressed as mintick, so signals would still show if the strict parameters were not met by 1 tick (or more if you change the value)
Release Notes:
bug fixes
Release Notes:
refining code for hammers and stars
adding option to choose between continuity signals and reversal signals
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?