PINE LIBRARY
تم تحديثه

SlopeUtils

324
Library "SlopeUtils"

calcSlope(src, atr_series, length)
  Calculates a normalized slope based on price change relative to ATR.
  Parameters:
    src (float): (series float) The source input (e.g., close).
    atr_series (float): (series float) The ATR value for normalization.
    length (simple int): (simple int) The lookback period for the slope calculation.
  Returns: (float) The normalized slope value.
ملاحظات الأخبار
v2

Added:
calcLinRegSlope(src, length, use_atr)
  Calculates a statistically sound slope using Linear Regression.
  Parameters:
    src (float): (series float) The source input (e.g., close or SMA).
    length (simple int): (simple int) The lookback period.
    use_atr (bool): (bool) Whether to normalize the slope by ATR.
  Returns: (float) The slope of the regression line.
ملاحظات الأخبار
v3

Updated:
calcLinRegSlope(src, length, atr_val)
  Calculates a statistically sound slope using Linear Regression.
  Parameters:
    src (float): (series float) The source input (e.g., close or SMA).
    length (simple int): (simple int) The lookback period.
    atr_val (float)
  Returns: (float) The slope of the regression line.

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

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