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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。