TradingView
alexgrover
Apr 1, 2020 6:28 PM

Vanilla ABCD Pattern 

Apple Inc.NASDAQ

Description

Patterns 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 ^^'
Comments
Cryp0Crypt0
BRAVO GREAT JOB
YOU RE PUSHISHING AGAIN AND AGAIN ....

THANKS A LOT

PS may be you'll love this wellknown poem

Baudelaire : L'Albatros
[...]

Le Poète est semblable au prince des nuées
Qui hante la tempête et se rit de l'archer ;
Exilé sur le sol au milieu des huées,
Ses ailes de géant l'empêchent de marcher.

poème extrait des "Fleurs du Mal"
alexgrover
@Cryp0Crypt0, Thx for your comment. Altho i haven't published in an entire week before the PVNO. And thank you for sharing the magnificence of Baudelaire :) Its great to sometimes see some poesy in a comment section.
Cryp0Crypt0
@alexgrover, ;)
stronger together
aipowertrader
Nice bit of work Alex, thanks.
alexgrover
@aipowertrader, Thx for the support ^^
LonesomeTheBlue
Looks good and promising. well done.
alexgrover
@LonesomeTheBlue, Glad to hear it, thx for your comment ^^
ICEKI
Hi Alex, I do agreed your point of view in the final summary. I personally also like to detect ABCD pattern for future movement but the accuracy is relatively low. In order to make it more accurate we must enhance our approach for adding some others analysis like harmonic pattern etc...

However still very appreciated your works and also thanks to those people who requested.

Thanks Alexgrover <3
alexgrover
@ICEKI, Thx for your feedback, for me harmonic patterns don't hold much predictive value, but since i don't have much to do (actually thats wrong) i felt like accepting that request. Thx for your support as always, greatly appreciated.
Pratik_4Clover
Looks nice ^^
More