PINE LIBRARY
Cập nhật

utils

910
Library "utils"

ma_smooth(alg, src, len) Calculates various moving averages
  Parameters:
    alg: Smoothing algorithm to use [RMA, SMA, EMA, WMA]
    src: Source data
    len: Length of moving average
Phát hành các Ghi chú
Update displayed chart
Phát hành các Ghi chú
v3
Phát hành các Ghi chú
v4

Added:
vma(alg, src, len) Calculates various moving averages
  Parameters:
    alg: Smoothing algorithm to use [RMA, SMA, EMA, WMA]
    src: Source data
    len: Length of moving average

Removed:
ma_smooth(alg, src, len) Calculates various moving averages
Phát hành các Ghi chú
v5

Added:
sig(val) Clamps a value between 0 and 1 on a sigmoid curve
  Parameters:
    val: Input data

siga(val) Clamps a value between -1 and 1 on a sigmoid curve
  Parameters:
    val: Input data
Phát hành các Ghi chú
v6

Added:
sigaw(val, weight)
  Clamps a series between -1 and 1 on a sigmoid curve with a tunable weight
  Parameters:
    val (float): Input series
    weight (float): Sigmoid weight

Updated:
vma(alg, src, len)
  Calculates various moving averages
  Parameters:
    alg (string): Smoothing algorithm to use (opt: ["SMA", "EMA", "RMA", "WMA", "DEMA", "TEMA", "VWMA", "HMA", "LSMA"])
    src (float): Source data
    len (simple int): Length of moving average

sig(val)
  Clamps a series between 0 and 1 on a sigmoid curve
  Parameters:
    val (float): Input series

siga(val)
  Clamps a series between -1 and 1 on a sigmoid curve
  Parameters:
    val (float): Input series

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

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.