OPEN-SOURCE SCRIPT
Actualizado 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.
Notas de prensa
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.
Notas de prensa
English:- fixed a bug concerning the if-statement
Deutsch:
- Fehler behoben der die if-Klausel betraf
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.