MagicEins

Moving Average Above / Below

English:
Due to changes made by TradingView, my old script "Moving Average Trend-Buschi" is no longer functioning. Please use this indicator.
Description:
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 as an argument.
Due to the changes mentioned above, please add the corresponding built-in moving average as a separate indicator.

Deutsch:
Aufgrund von Änderungen seitens TradingView funktioniert mein altes Skript "Moving Average Trend-Buschi" nicht mehr. Bitte benutzt diesen Indikator.
Beschreibung:
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 als Argument angezeigt.
Aufgrund der oben beschriebenen Änderungen müsst / könnt ihr noch den zugehörigen eingebauten gleitenden Durchschnitt als separaten Indikator hinzufügen.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?