OPEN-SOURCE SCRIPT

Moving Average Trend-Buschi

Updated
This script shows via selectable sorts of Moving Averages (normal, weighted or exponential) the amount of units (e. g. trading days) that are currently above (value in green) or under (value in red) the main series.
The value is shown on the indicator line.
It's an invisible plot which nevertheless influences the scaling. So the plot "Just for Calculation" has to be manually unchecked in the Style-section.
Help on how this can be removed on default would be highly appreciated. :-)
Release Notes
German translation

Deutsch:

Das Skript zeigt über auswählbare gleitende Durchschnitte (normal, gewichtet oder exponentiell) die Anzahl an Einheiten (z. B. Handelstage) auf, die zum jeweiligen Zeitpunkt hintereinander über (in grün) oder unter (in rot) dem Hauptsymbol verlaufen. Der Wert wird in der Indikator-Zeile angezeigt.
Realisiert wird dies über einen unsichtbaren Plot, der nichtsdestotrotz die Skalierung beeinflusst. Um das zu korrigieren, muss unter "Stil" der Haken beim Plot "Just for Calculation" herausgenommen werden.
Hilfe, wie man das bereits automatisch im Skript bewerkstelligen kann, nehme ich gern entgegen. :-)
Release Notes

English:
fixed a bug concerning the "if statement"

Deutsch:
behobener Bug bzgl. der "if-Ansage"
Moving AveragesTrend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer