MagicEins

Distribution Days-Buschi

MagicEins Updated   
This script is a simple extension of the script "Distribution Day" from user "kalle2017". Thanks to him!

As the name suggests, the idea is to recognize "distribution days", when the "firm hands sell to the shaky hands" (Kostolany). So, too many distribution days in a certain timeframe can be a sign for a coming correction / bear market.
A distribution day gets triggered when a loss compared on the day before exceeds 0.2 % and the trading volume is higher.

This indicator works on any daily chart symbol but should be primarily used on major indexes.

Possible inputs are "days back" to count how many trading should be examined(default: 25). Additionally, I implemented the possibility to draw a moving average (default: exponential, 50), to eliminate distribution days below, because it is more of an indicator for the upside. Perhaps a little bit too much / too complicated, therefore it is off by default.
Release Notes:
Deutsch:

Das Skript ist eine einfache Erweiterung des Skriptes "Distribution Day" vom User "kalle2017". Dank an ihn!
Wie der Name schon sagt, ist die Idee, "Distributionstage" zu erkennen (die ruhigen Hände verkaufen an die zittrigen Hände (Kostolany)). Eine Häufung von Distributionstagen in einem bestimmten Zeitraum kann also ein Anzeichen einer Korrektur / Bärenmarktes sein.
Ein Distributionstag ist definiert über einen Verlust zum Vortag von über 0,2 % und einem Anstieg des Handelsvolumens.

Der Indikator gilt für Tagescharts und sollte vorzugsweise auf große Indices angewendet werden.

Mögliche Eingaben sind "days back", um zu bestimmen, über wie viele Handelstage die Distributionstage aufsummiert werden sollen. Zusätzlich habe ich einen gleitenden Durchschnitt eingebaut (Standardwerte: exponential, 50), um Distributionstage unterhalb dieser Linie zu eliminieren, weil es eher ein Indikator für die Oberseite darstellt. Vielleicht ist dieser Ansatz etwas zu viel / zu kompliziert, daher ist er standardmäßig ausgeschaltet.
Release Notes:
English:
- fixed a bug concerning the if-statement

Deutsch:
- Fehler behoben der die if-Klausel betraf
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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?