OPEN-SOURCE SCRIPT
更新済 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.
リリースノート
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.
リリースノート
English:- fixed a bug concerning the if-statement
Deutsch:
- Fehler behoben der die if-Klausel betraf
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。