PINE LIBRARY

rate_of_change

125
Library "rate_of_change"

// description: Applies ROC algorithm to any pair of values.
// This library function is used to scale change of value (price, volume) to a percentage value, just as the ROC indicator would do. It is good practice to scale arbitrary ranges to set boundaries when you try to train statistical model.

rateOfChange(value, base, hardlimit)
  This function is a helper to scale a value change to its percentage value.
  Parameters:
    value (float)
    base (float)
    hardlimit (int)
  Returns: per: A float comprised between 0 and 100

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.