OPEN-SOURCE SCRIPT
Mis à jour Distribution Days-Buschi

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.
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.
Notes de version
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.
Notes de version
English:- fixed a bug concerning the if-statement
Deutsch:
- Fehler behoben der die if-Klausel betraf
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.