123 Trend Continuation PatternThis simple indicator will help identify the 123 Patterns on the charts. It's build based on the zigzag indicator, which will work as a guideline to identify the 3 points. As soon as the price crosses the third point, the indicator will draw 3 lines: entry, take profit, and stop loss. Those lines will work as a reference and may help with other indicators. This kind of analysis will work on any time frame and symbol, but those markets that have high volatility may have better result
W-m-pattern
Tweezer Scanner v1Some code for detecting tweezer candles, which are reversal patterns. You'll need to tweak the settings to be either less strict (more detections) or more strict (less detections). I found that if you follow the documentation for tweezers exactly, you will get very few detections. It is possible that this candlestick has become overused, so the original pattern itself has been lost to the noise of the market.
Settings:
1. Tweezer Max Body Height (Pips) - How tall can the body of the tweezer be, in pips (increase this pips to increase detections)
2. Tweezer Body Similarity (>%) - How similar should the body heights be, higher percentage is more similar (reduce this % to increase detections)
3. Tweezer Tail Similarity (>%) - How similar should the tail heights be, higher percentage is more similar (reduce this % to increase detections)
4. Tweezer Tail Proportion (<%) - How short should the opposite tail heights be, lower percentage is shorter and more similar to the documentation (increase this % to increase detections)
Vanilla ABCD PatternPatterns makes parts of the many predictive tools available to technical analysts, the most simples ones can be easily detected by using scripts. The proposed tool detect the simple (vanilla) form of the ABCD pattern, a pattern aiming to detect potential price swings. The script can use an additional confirmation condition that aim to filter potential false signals.
ABCD PATTERN
The ABCD pattern is not meant to be detected by analyzing individuals closing price observations but by analyzing longer term movements, this is done by using tools such as zig-zag. Like any pattern the ABCD one comes in different flavors, the simplest being based on the following structures:
Once price reach D we can expect a reversal. The classical pattern has the following conditions : BC = 0.618*AB and CD = 1.618*AB , as you can see this condition is based on 0.618 which is a ratio in the Fibonacci sequence. Other conditions are for AB to equal to CD or for CD to be 161.8% longer than AB. Why these conditions ? Cause Fibonacci of course .
The ABCD pattern that the proposed tool aim to detect is not based on the zig-zag but only on individual price observations and don't make use of any of the previously described conditions, thus becoming more like a candle pattern.
When the label is blue it means that the tool has detected a bullish ABCD pattern, while a red label means that the tool has detected a bearish ABCD pattern.
We can't expect patterns based on the analysis of 1,2,3 or 4 closing price observations to predict the reversal of mid/long term movements, this can be seen on the above chart, but we can see some signals predicting short term movements.
Since the pattern is based on a noisy variation, using smoother input can result in less signals.
Above the tool on BTCUSD using closing price as input. Below the tool using ohlc4 as input:
TOOL OPTIONS
Being to early can be as devastating as being to late, therefore a confirmation point can be beneficial, the tool allow you to wait for confirmation thus having a potentially better timing. Below is a chart of AMD with no confirmation:
As we can see there are many signals with some of them occurring to early, we can fix this by checking the confirmation option:
The confirmation is simply based on the candle color, for example if a bearish ABCD pattern has been detected in the past and the closing price is greater than the opening price then the tool return a buy signal. The same apply with a bearish ABCD pattern.
The "last bar repaint" option is true by default, this in order to show the bar where the D point of the pattern has been detected, since the closing price of the last bar is constantly changing the signals on the last bar can be constantly appearing/disappearing, unchecking the option will fix this but will no longer the bar where the D point of the pattern has been detected.
SUMMARY
The pattern is simple and can sometimes be accurate when predicting the direction of future short terms movements. The tool was a request, as it seems i don't post many pattern detectors, well thats true, and the reason is that for me patterns are not super significant, and their detection can be extremely subjective, this is why simple patterns are certainly the only ones worth a look.
Don't expect me to post many pattern related indicators in the future ^^'
Sequentially Filtered Moving AverageThe previously proposed sequential filter aimed to filter variations lower than a certain period, this allowed to remove noisy variations and retain only the closing price values that occurred after a consecutive up/down, however because of the noisy nature of the closing price large filtering was impossible, in order to tackle to this problem the same indicator using a simple moving average as input is proposed, this allow for smoother results.
We will see that the proposed indicator can provide an alternative moving average that could be used as slow moving average in crossover systems.
The Indicator
The length parameter as the same function as the one described in the sequential filter post, however here length also control the period of the moving average used input, in short larger values of length will return a smoother but less reactive output.
In blue the moving average with length = 200, and in red the moving average with length = 50.
It is interesting to see how the moving average remain flat during ranging/flat market periods
Unfortunately like the sequential filter the sequentially filtered moving average (SFMA) is not affected by large short term variations such as gaps or short term volatile events. This is because of the nature of the sequential filter to ignore movements amplitude and only focus on the variation period.
Moving Average Crossover System
The SFMA is equal to a simple moving average of period length when a consecutive up/down sequence of size length has occurred, else the SFMA is equal to its precedent value, therefore we could expect less crosses between a fast moving average and the SFMA as slow moving average.
We can see on the figure above that the fast moving average of period 50 (in green) cross more with the slow moving average of period 200 (in red) than with the SFMA of period 200 (in blue).
Crosses can occur at the same time as with the classical slow moving average (in red) or a bit later.
Conclusion
A new moving average based on the recently proposed sequential filter has been proposed, it can be seen that under a moving average crossover system the proposed moving average seems to be more effective at producing less crosses without necessarily doing it with an excessive lag, in fact the moving average has either lag (length-1)/2 or lag length .
In the future it could be interesting to provide an hybrid alternative that take into account volatility as well as variations period.
Thanks for reading !
Sequential Filter - An Original Filtering ApproachRemoving irregular variations in the closing price remain a major task in technical analysis, indicators used to this end mostly include moving averages and other kind of low-pass filters. Understanding what kind of variations we want to remove is important, irregular (noisy) variations have mostly a short term period, fully removing them can be complicated if the filter is not properly selected, for example we might want to fully remove variations with a period of 2 bars and lower, if we select an arithmetic moving average the filter output might still contain such variations because of the ripples in the frequency response passband, all it would take is a variation of high amplitude for that variation to be clearly visible.
Although all it would take for better filtering is a filter with better performance in the frequency domain (gaussian, Butterworth, Bessel...) we can design innovative approaches that does not rely on the model of classical moving averages, today a new technical indicator is proposed, the technical indicator fully remove variations lower than the selected period.
The Indicator Approach
In order for the indicator output to change the closing price need to produce length consecutive up's/down's, length control the variation threshold of the indicator, variations lower than length are fully removed. Lets see a visual example :
Here length = 3, the closing price need to make 3 consecutive up's/down's, when the sequence happen the indicator output is equal to src , here the closing price, else the indicator is equal to its precedent value, hence removing other variations. The value of 3 is the value by default, this is because i have seen in the past that the average smallest variations period where in general of 3 bars.
Because the indicator focus only on the variation sign, it totally ignore the amplitude of the movement, this provide an effective way to filter short term retracement in a fluctuation as show'n below :
The candle option of the indicator allow the indicator to only focus on the body color of a candle, thus ignoring potential gaps, below is an example with the candle option off :
If we activate the "candle" option we end up with :
Note that the candle option is based on the closing and opening price, if you use the indicator on another indicator output make sure to have the candle option off.
Length and Indicator Color
The closing price is infected by noise, and will rarely make a large sequence of consecutive up's/down's, the indicator can therefore be useful to detect consecutive sequence of length period, here 6 is selected on BTCUSD :
A consecutive up's/down's of period 6 can be considered a relatively rare event.
It is important to note that the color of the indicator used by default has nothing to do with the consecutive sequence detected, that is the indicator turning red doesn't necessarily mean that a consecutive down's sequence has occurred, but only that this sequence has occurred at a lower value than the precedent detected sequence. This is show'n below :
In order to make the indicator color based on the detected sequence check the "Color Based On Detected Sequence" option.
Conclusion
An original approach on filtering price variations has been proposed, i believe the indicator code is elegant as well as relatively efficient, and since high values of length can't really be used the indicator execution speed will remain relatively fast.
Thanks for reading !
BEST ABCD Pattern ScreenerHello ladies and gentlemen traders
Continuing deeper and stronger with the screeners' educational series one more time.
This one is heavy crazy mega cool (pardon my french).
I - Concept
I present to you, ladies and gentlemen, the first screener for harmonic patterns.
Starting with an ACBD pattern screener this time!!
I used the calculations from Ricardo Santo's script
In short, he's using fractals (regular or Bill Williams ) for the pattern calculations. A masterpiece !!!
The screener will show in 1 consolidated chart the ABCD patterns for 5 selected assets. Could be stocks, forex, crypto, whatever you feel like making money with
II - Definitions
The ABCD pattern ( AB=CD ) is one of the classic chart patterns which is repeated over and over again.
The ABCD pattern shows perfect harmony between price and time.
More info here
The Williams Fractal is an indicator, developed by Bill Williams, that aims to detect reversal points (highs and lows) and marks them with arrows.
Up fractals and down fractals have specific shapes. The Williams Fractal indicator helps users determine in which direction price will develop
Source: www.tradingview.com
III - How did I set the screener
The visual signals are as follow:
- square: whenever there is an ABCD pattern detected
Then the colors are:
- green when a bullish pattern is detected
- red when a bearish pattern is detected
🔸 The script screenshot shows two red squares matching two ABCD bearish pattern from the above panel. As the chart is showing APPL, I highlighted where the screener mentioned the fruit stock ( APPLE, pun, bad joke, Dave out...)
🔸 I tried to make it as clear as I could with red arrows
Once again, we pushed together the limits of pine script beyond of what we thought was possible, beyond the realm of this world, reaching finally the dreamt pine script heaven (am I going too far? feel free to tell me)
Best regards,
Dave
[RS]ZigZag Percent Reversal - Helper - Draw Patterns - Part 3Helper script to draw patterns on chart.
[RS]ZigZag Percent Reversal - Helper - Draw Patterns - Part 2Helper script to display patterns on chart.
[RS]ZigZag Percent Reversal - Helper - Draw Patterns - Part 1Helper script to display patterns on chart.
Candelsticks Pattern {LB}In questo script ho aggiunto i migliori candelstick pattern (che conosco) e che reputo diano indicazioni più chiare riguardo la tendenza quantomeno giornaliera. Consiglio quindi l'utilizzo di questo script su timeframe giornaliero in modo da avere un idea della direzione da seguire per poi passare a timeframe più bassi per entrare più nel dettaglio e favorire la propria strategia di ingresso.
Alcuni di questi pattern indicano la direzione da seguire, se Long o Short, altri invece indicano il tipo di pattern che, se rotto al rialzo indica una direzione long e viceversa, se rotto al ribasso indica direzione short, parliamo ad esempio del pattern 2Doji o del pinBar (vedi immagine sopra).
Infine resta da dire che non tutti i pattern inseriti in questo script verranno individuati su ogni grafico, ad esempio, su un grafico di un mercato azionario è più facile che ci siano dei pattern come il Bearish Engulfing in quanto il cosidetto pattern per verificarsi ha bisogno di aprirsi al di sopra del massimo della candela precedente e chiudersi al di sotto della candela precedente, quindi un apertura in gap, cosa che nel forex è difficile da trovare. Come questo come altri tipi di pattern come l'Outside di Larry Willliams, il BHL (Belt Hold Lines), morning star e via dicendo.
In totale questo script contiene 10 pattern. Condivido in open in modo che possiate farli vostri e migliorarli in base alle vostre esigenze come ho fatto io con alcuni di questi. Se vi è piaciuto questo script lasciate un bel like e se avete dei dubbi o volete contattarmi per del supporto sono pronto ad aiutare.
Saluti e buon trading a tutti.
[RS]ZigZag Percent Reversal - Forecast - patterns - labels description:
• Zig Zag indicator plots points on the chart whenever prices reverse
by a percentage greater than a pre-chosen variable.
• Forecasts area based on zigzag statistics.
• Displays labels with detected patterns.
• Displays slope information rate of price, time diferentials and angle(experimental)
High Performance Candlestick Patterns//Candle Patterns Ranked by Performance THOMAS N. BULKOWSKI
//1. Bearish Three Line Strike +Up 67.38%
//2. Bullish Three Line Strike -Down 65.23%
//3. Bearish Three Black Crows -Down 59.83%
//4. Bearish Evening Star -Down 55.85%
//5. Bullish Upside Tasuki Gap +Up 54.44%
//6. Bullish Inverted Hammer -Down 51.73%
//7. Bullish Matching Low -Down 50.00%
//8. Bullish Abandone Baby +Up 49.73%
//9. Bearish Two Black Gapping -Down 49.64%
//10. Brearish Breakaway -Down 49.24%
//11. Bullish Morning Star +Up 49.05%
//12. Bullish Piercing Line +Up 48.37%
//13. Bullish Stick Sandwich +Up 48.20%
//14. Bearish Thrusting Line During Dowtrend +Up 48.10%
//15. Bearish Meeting Line +Up 48.07%
//Down=Yellow Bar Color and Black Text
//Up=Blue Bar Color and Blue Text
//High Performance Candlestick Patterns Top 15
Bearish Candlestick PatternsDoji
Black Spinning Top
White Spinning Top
Bearish Abandoned Baby
Bearish Advance Block
Bearish Below The Stomach
Bearish Belt Hold
Bearish Breakaway
Bearish Counter Attack Lines
Bearish Dark Cloud Cover
Bearish Deliberation Blok
Bearish Descending Hawk
Bearish Doji Star
Bearish Downside Gap Three Methods
Bearish Downside Tasuki Gap
Bearish Dragonfly Doji
Bearish Engulfing
Bearish Evening Doji Star
Bearish Evening Star
Bearish Falling Three Methods
Bearish Falling Window
Bearish Gravestone Doji
Bearish Hanging Man
Bearish Harami
Bearish Harami Cross
Bearish Hook Reversal
Bearish Identical Three Crows
Bearish In Neck
Bearish Island Reversal
Bearish Kicking
Bearish Ladder Top
Bearish Last Engulfing Top
Bearish Low Price Gapping Play
Bearish Mat Hold
Bearish Matching High
Bearish Meeting Line
Bearish On Neck
Bearish One Black Crow
Bearish Separating Lines
Bearish Shooting Star
Bearish Side by side White Lines
Bearish Three Black Crows
Bearish Three Gap Up
Bearish Three Inside Down
Bearish Three Line Strike
Bearish Three Outside Down
Bearish Three Stars in the North
Bearish Thrusting Line During Dowtrend
Bearish Tower Top
Bearish Tristar
Bearish Tweezers Top
Bearish Two Black Gapping
Bearish Two Crows
Bearish Upside Gap Two Crows
A/D Levelsuses reversal candles to determine accumulation and distribution candles
remembers the last reversal candle and draws a support or resistance line at the reversal level
does a barcolor if the price breaks support/resistance
similar to the hoffman a/d breakout indicator but there is no trend detection components
Bullish/Bearish Candelstick patternHey!
This time I took the pattern recognizer from a previous script I worked.
It overlays the Arrows on the chart.
Legend:
#Maroon colour: Strong bearish signal
#Red colour: Bearish signal
#Dark Green colour: Strong bullish signal
#Lime: Bullish signal
NOTE: Also, you can untick the patterns you don't find useful, but I kept every pattern to get a complete script.
I unticked:
Morning Star
Evening Star
Shooting Star
Bullish Harami (too bearish on corrective phase)
Hanging Man
Red Cloud Cover
Fractal Breakout V2Version 2 of my fractal pattern aid ( Version 1 ).
I added a bouncing line between the high and low trend lines, connecting consecutive extreme points. I also chased down a pesky bug in the slope calculation...and for now I have disabled the ability to change resolution basis for extreme detection (e.g. 30m on a 1hr chart).
For fun, I added some shading to make it more apparent at a glance what is happening, but if you find it gimmicky, there's an option to turn that off.
I am inexperienced with pattern recognition, so please send feedback if you have any ideas that would make this more useful.
Thanks!
Lemrin
PorcupineDisplays "spike days" by colouring the bars (Default: yellow for a Spike High and blue for a Spike Low)
Spike Day's definition taken from Jack D Schwager's Book: A Complete Guide to the Futures Market: Technical Analysis, Trading Systems, Fundamental Analysis, Options, Spreads, and Trading Principles
A spike is:
A wide difference between the spike high and the highs of the preceding and succeeding days.
A close near the low of the day's range.
A substantial price advance preceding the spike's formation.
The more extreme each of these conditions, the greater the likelihood that a spike high will prove to be an important relative high or even a major top.
(inverse is true for lows, basically)
Enjoy!