This script combines Moving Averages with ADX Strength, but with an added bonus. Rather than having the Moving Average line always plot on the chart, it will reference the ADX strength based on the settings by the trader.

This way, the Moving Average will not show on the chart unless there is also a strong direction in the trend. This may potentially be used to help with entries when trend trading due to adding the ADX for trend strength.

In the examples below, the ADX settings in the MA+ADX indicator are matched with the settings of a standalone ADX indicator at the bottom of the chart (not included, just for reference).

MA+ADX
prnt.sc/xgdn6iAYwD2T

ADX Only
prnt.sc/dVPYEutE6emA


You will see how the MA only plots when the ADX is over the threshold, currently set at 25. (arrows drawn to indicate confluence)
Versionshinweise:
Can choose between 4 different types of Moving Averages. (EMA, SMA, WMA, HMA)

ALL indicators, strategies and bots are included with Discord access.
www.NorthStarDayTrading.com/discord
www.youtube.com/shorts/fWFQE7uEHvU
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?