jth88

Market Trend using First Derivative of MAs + Volatility

jth88 Aktualisiert   
Based on Smooth First Derivative Indicator by tbiktag
Volatility also from another public TV script, forgot which one though, sorry if this is yours and I haven't credited your work, let me know if it is and I'll reference it properly.

About this indicator:

Estimates whether market is trending up, down or sideways by adding the slope (first derivatives) of a fast & slow MA. Uptrend = Green, Downtrend = Red, Sideways = Yellow

Uses a minimum slope percentile to determine threshold for uptrend, downtrend & sideways. Definitely adjust this when changing timeframes, for BTCUSD at 1 hour timeframe a value of 25 is decent
Also has a measure of Volatility if you're into that

Explanation of inputs:
Bandwidth - for derivative function
Fastma - period for fast Moving Average
Slowma - period for slow Moving Average
Derivmalength - smooths out the signal, reducing single contrasting bars, but delays the signal. Use 1 if don't want to use
V length - ema of volatility if you want to smooth it
Min Slope Percentile - slope should exceed this percentile to be classified as uptrend (green) or downtrend (red) anything in this bottom percentile will be considered sideways
Mine Slope Lookback Period - # of bars back to calculate Slope Percentile
Versionshinweise:
Fixed Min Slope Percentile error, now properly goes from 1 - 100
Versionshinweise:
Added option to use Squeeze Momentum based derivative to determine trend (less laggy but maybe requires a lot more tweaking to properly identify ranging zones). By default it's still MA-based derivatives.
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?