PineCodersTASC

TASC 2023.11 VAcc

█ OVERVIEW

The November 2023 edition of TASC's Traders' Tips features an article titled "VAcc: A Momentum Indicator Based On Velocity And Acceleration" by Scott Cong. This script implements the author's momentum indicator based on simple physics concepts.

█ CONCEPTS

The indicator is named VAcc as it is derived from the average velocity (V) and acceleration (Acc) over a specified lookback period. Consequently, its readings reflect two valuable characteristics of price data: rate (indicating the speed at which the price is moving) and rate of change (indicating whether the price is speeding up or slowing down).

In the article, the author reports that for longer periods, VAcc behaves similarly to the MACD, albeit with a more responsive nature. For shorter periods, VAcc exhibits characteristics reminiscent of the stochastic oscillator, but it trends more prominently and is less prone to overbought/oversold saturation.

To incorporate VAcc into trading strategies, the author suggests considering the following two permutations for the velocity and acceleration data series:
  • Strong upward condition: Velocity is rising, and acceleration is rising above zero.
  • Strong downward condition: Velocity is falling, and acceleration is falling.

In the current implementation, the chart displays the average velocity as a line, while the average acceleration is presented as a histogram.

█ CALCULATIONS

The calculation of VAcc involves the following steps:
  • For the current closing price, C, and for each bar C(i) within a specified lookback period from the current bar, the script calculates velocities, V(i) = (C - C(i))/i. These velocities are then subjected to an exponential moving average to obtain the smoothed average velocity.
  • Similarly, for each bar within the lookback period, accelerations are calculated as Acc(i) = (V - V(i))/i and then averaged without smoothing.

Tools and ideas for all Pine coders: www.tradingview.com/u/PineCoders/
Pine news broadcasts: t.me/PineCodersSquawkBox or twitter.com/PineCoders
TASC: traders.com/
نص برمجي مفتوح المصدر

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

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

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

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟