PINE LIBRARY
Aggiornato

utils

870
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
Note di rilascio
Update displayed chart
Note di rilascio
v3
Note di rilascio
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
Note di rilascio
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
Note di rilascio
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

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.