OPEN-SOURCE SCRIPT
Aktualisiert SMA 50 Derivative

This approach uses calculus concepts:
First Derivative (slope): Rate of change of the SMA → ta.change(sma50)
Second Derivative (acceleration): Rate of change of the slope → ta.change(smaSlope)
1. First Derivative (smaSlope)
Measures: The instantaneous rate of change between the current bar and previous bar
Formula: sma50 - sma50[1]
Interpretation:
> 0 = SMA is rising (uptrend)
< 0 = SMA is falling (downtrend)
= 0 = SMA is flat
2. Second Derivative (smaAcceleration)
Measures: How the slope itself is changing
Formula: smaSlope - smaSlope[1] = (sma50 - sma50[1]) - (sma50[1] - sma50[2])
Interpretation:
> 0 = Slope is increasing (trend is accelerating)
< 0 = Slope is decreasing (trend is decelerating)
= 0 = Slope is constant
**For scalping, very short-term signals**
First Derivative (slope): Rate of change of the SMA → ta.change(sma50)
Second Derivative (acceleration): Rate of change of the slope → ta.change(smaSlope)
1. First Derivative (smaSlope)
Measures: The instantaneous rate of change between the current bar and previous bar
Formula: sma50 - sma50[1]
Interpretation:
> 0 = SMA is rising (uptrend)
< 0 = SMA is falling (downtrend)
= 0 = SMA is flat
2. Second Derivative (smaAcceleration)
Measures: How the slope itself is changing
Formula: smaSlope - smaSlope[1] = (sma50 - sma50[1]) - (sma50[1] - sma50[2])
Interpretation:
> 0 = Slope is increasing (trend is accelerating)
< 0 = Slope is decreasing (trend is decelerating)
= 0 = Slope is constant
**For scalping, very short-term signals**
Versionshinweise
added colored area between linesOpen-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
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.