UnknownUnicorn187266

MaxWarren's Pine Acceleration - 2nd Derivative

This is the acceleration of a chart written in pine. It's the second derivative otherwise the derivative of the momentum.

It shows how fast a stock's momentum is changing and in what direction.

As standard I left the controls in the settings for source and length of the estimate.

I will be incorporating this in other more complicated scripts here shortly
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?
study(title="MaxW's DMA", shorttitle="MaxW's DMA", overlay=false)
dAccuracy = input(1, minval=1, title="Derivative Estimate")
dSrc = input(close, title="Source")
slope = (dSrc - dSrc[dAccuracy]) / dAccuracy
aAccuracy = input(1, minval=1, title="Acceleration Estimate")
dSlope = (slope - slope[aAccuracy]) / aAccuracy
plot(dSlope)