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
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
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)